Commit 77f5ee7f authored by David Surville's avatar David Surville
Browse files

[Fix] L'attribut supannEmpCorps peut contenir des caractères spéciaux : -/

parent 770b3f26
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1780,9 +1780,9 @@ class People extends Entity
        $corpsLabel = $this->getLabel('NCORPS');
        $value = array_map(function ($val) use ($corpsLabel) {
            if (is_string($val)) {
                if (preg_match("/^$corpsLabel\w+$/", $val)) {
                if (preg_match("/^$corpsLabel.*$/", $val)) {
                    return $val;
                } elseif (preg_match("/^\w+$/", $val)) {
                } elseif (preg_match("/^.*$/", $val)) {
                    return sprintf('%s%s', $corpsLabel, $val);
                }
            }