Skip to content
Snippets Groups Projects
Commit 593fae9d authored by David Surville's avatar David Surville
Browse files

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

parent e6f8049d
Branches
Tags 3.1.13
No related merge requests found
......@@ -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);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment