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
...@@ -1780,9 +1780,9 @@ class People extends Entity ...@@ -1780,9 +1780,9 @@ class People extends Entity
$corpsLabel = $this->getLabel('NCORPS'); $corpsLabel = $this->getLabel('NCORPS');
$value = array_map(function ($val) use ($corpsLabel) { $value = array_map(function ($val) use ($corpsLabel) {
if (is_string($val)) { if (is_string($val)) {
if (preg_match("/^$corpsLabel\w+$/", $val)) { if (preg_match("/^$corpsLabel.*$/", $val)) {
return $val; return $val;
} elseif (preg_match("/^\w+$/", $val)) { } elseif (preg_match("/^.*$/", $val)) {
return sprintf('%s%s', $corpsLabel, $val); return sprintf('%s%s', $corpsLabel, $val);
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment