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

:ambulance: fix(supann) forbid incompatible values member and affiliate at the same time

issue #5840
Showing with 12 additions and 0 deletions
+12 -0
......@@ -560,6 +560,18 @@ class supannAccount extends simplePlugin
);
}
function check()
{
$message = parent::check();
$affiliations = $this->eduPersonAffiliation;
if (in_array('member', $affiliations) && in_array('affiliate', $affiliations)) {
$message[] = _('"member" and "affiliate" values are incompatible for eduPersonAffiliation. Please remove one of them.');
}
return $message;
}
function save_object()
{
parent::save_object();
......
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