mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
N°5904 When getting an error in a popup (e.g. uniqueness rule), remove submit state, so we can submit the form again
This commit is contained in:
@@ -94,6 +94,10 @@ class ObjectController extends AbstractController
|
||||
oForm.closest('[data-role="ibo-modal"]').dialog('close');
|
||||
}
|
||||
else {
|
||||
/* We're not in submit anymore */
|
||||
window.bInSubmit = false;
|
||||
oForm.attr('data-form-state', 'default');
|
||||
/* Display error popup */
|
||||
CombodoModal.OpenInformativeModal(data.data.error_message, 'error');
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user