Unverified Commit 5b1de592 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

:ambulance: fix(supann) Avoid PHP errors in template

issue #6108
Showing with 1 addition and 1 deletion
+1 -1
......@@ -28,7 +28,7 @@ class SupannCursusAnneeAttribute extends SupannPrefixedSelectAttribute
new SelectAttribute('', '', $ldapName.'_prefix', $required),
new SelectAttribute('', '', $ldapName.'_content', FALSE)
];
CompositeAttribute::__construct($description, $ldapName, $attributes, '/^{SUPANN}(.)(\\d*)$/', '{SUPANN}%s%s', $acl, $label);
CompositeAttribute::__construct($description, $ldapName, $attributes, '/^{SUPANN}(%askme%|.)(%askme%|\\d*)$/', '{SUPANN}%s%s', $acl, $label);
$this->setLinearRendering(TRUE);
$this->attributes[0]->setChoices(
......
Supports Markdown
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