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:
Stephen Abello
2023-01-27 14:33:49 +01:00
parent fd4a2f17d2
commit bc3b43958c
2 changed files with 8 additions and 0 deletions

View File

@@ -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');
}
});