Commit 75b6715f authored by Jonathan Swaelens's avatar Jonathan Swaelens
Browse files

🚑 fix(supann): Make diploma custom prefix visible

The diplomas are sorts in [$type][$sectdisc] but because of the interface the prefix of $type and $sectdisc can only be {SISE}. To be able to find the custom diploma prefix, they must be added in {SISE} and not in their prefix.
parent 4dd056dd
......@@ -115,10 +115,12 @@ class SupannEtuInscriptionAttribute extends SupannCompositeAttribute
$label1 .= ' - '.$label2;
}
if ($type[0] != '{') {
$type = '{'.$prefix.'}'.$type;
// $type cannot be used with another prefix than {SISE}
$type = '{SISE}'.$type;
}
if ($sectdisc[0] != '{') {
$sectdisc = '{'.$prefix.'}'.$sectdisc;
// $sectdisc cannot be used with another prefix than {SISE}
$sectdisc = '{SISE}'.$sectdisc;
}
$this->diplomas[$type][$sectdisc][$prefix][0][] = $id;
$this->diplomas[$type][$sectdisc][$prefix][1][] = $label1;
......
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