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

🚑 fix(supann) Fix card types in supannCMSAppAffectation

This attribute was still reading cmstype file instead of configuration.

issue #6015
parent 615220d2
......@@ -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