Commit 81ec869c authored by Côme Chilliet's avatar Côme Chilliet
Browse files

Merge branch '6015-add-support-for-supann-cms-carte-multi-service' into '1.4-dev'

Resolve "Add support for SupAnn CMS (Carte Multi Service)"

See merge request fusiondirectory/fd-plugins!720
parents 615220d2 06ff038c
......@@ -25,7 +25,13 @@ class SupannCMSAppAffectationAttribute extends SupannCompositeAttribute
function __construct ($label, $description, $ldapName, $acl = '')
{
global $config;
list($types, $typeLabels) = supann::get_choices_for('cmstype');
$types = [];
$typeLabels = [];
foreach ($config->get_cfg_value('SupannCMSTypes', []) as $supannCMSType) {
list($type, $label) = explode(';', $supannCMSType);
$types[] = $type;
$typeLabels[] = $label;
}
$attributes = [
new SelectAttribute(
_('Type'), _('supannCMSType - Card type'),
......
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