Unverified Commit f095427b authored by Côme Chilliet's avatar Côme Chilliet
Browse files

:ambulance: fix(subscription) Fix error when importing twice without leaving the page

issue #6152
Showing with 7 additions and 1 deletion
+7 -1
......@@ -189,7 +189,13 @@ class subscriptionInfo extends simplePlugin
$this->attributesAccess[$attr]->setValue(isset($data[$iniVar]) ? $data[$iniVar] : '');
}
$errors = $this->parent->save();
msg_dialog::displayChecks($errors);
if (empty($errors)) {
/* The object will stay open so it needs to appear as loaded from LDAP */
$this->is_account = TRUE;
$this->initially_was_account = TRUE;
} else {
msg_dialog::displayChecks($errors);
}
}
/* Avoid double import */
$this->import_file = '';
......
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