Verified Commit e951fd76 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

:sparkles: feat(supann) Allow several values for supannCodeEntiteParent

issue #5885
Showing with 6 additions and 4 deletions
+6 -4
......@@ -85,9 +85,11 @@ class entite extends simplePlugin
'supannCodeEntite', TRUE,
'', '', '/^[a-z0-9_-]*$/i'
),
new SelectAttribute(
_('Parent entity'), _('The parent entity of this entity'),
'supannCodeEntiteParent', FALSE
new SetAttribute(
new SelectAttribute(
_('Parent entities'), _('The parent entities of this entity'),
'supannCodeEntiteParent', FALSE
)
),
new SetAttribute(
new StringAttribute(
......@@ -128,7 +130,7 @@ class entite extends simplePlugin
}
}
}
$this->attributesAccess['supannCodeEntiteParent']->setChoices($entity_codes, $entity_labels);
$this->attributesAccess['supannCodeEntiteParent']->attribute->setChoices($entity_codes, $entity_labels);
$this->attributesAccess['ou']->setUnique(TRUE);
$this->attributesAccess['supannCodeEntite']->setUnique(TRUE);
......
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