Commit 3ddc469a authored by Antony Le Courtes's avatar Antony Le Courtes
Browse files

Ajout d'une option pour effectuer un recherche / remplace sur les libellés des...

Ajout d'une option pour effectuer un recherche / remplace sur les libellés des structures d'affectation
parent eefc9443
Loading
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -108,6 +108,11 @@ return [
                'U250000000',
                'U230000000',
            ],
            //Permet d'appliquer un recherche et remplacer sur les libellés des structures
             'regex'    => [
                'search'  => '000000',
                'replace' => '',
             ],
        ],

    ],
+4 −0
Original line number Diff line number Diff line
@@ -1343,6 +1343,10 @@ class Siham
                    }
                }
                ksort($unitesOrganisationnelles);
                if (isset($this->sihamConfig['unites-organisationelles']['regex'])) {
                    $unitesOrganisationnelles = str_replace($this->sihamConfig['unites-organisationelles']['regex']['search'],
                        $this->sihamConfig['unites-organisationelles']['regex']['replace'], $unitesOrganisationnelles);
                }

                return $unitesOrganisationnelles;
            }