From c58fe0f70ead4cf132ef69a6b307495dda75ee05 Mon Sep 17 00:00:00 2001 From: Paula Quispe Date: Wed, 4 Mar 2020 12:31:12 -0400 Subject: [PATCH] PMCORE-543 --- workflow/engine/templates/cases/open.js | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/workflow/engine/templates/cases/open.js b/workflow/engine/templates/cases/open.js index bdbddfe9b..869592e64 100644 --- a/workflow/engine/templates/cases/open.js +++ b/workflow/engine/templates/cases/open.js @@ -1079,15 +1079,24 @@ Ext.onReady(function(){ try { var data = Ext.util.JSON.decode(result.responseText); if (data.status == true) { - // The case was cancelled - parent.notify('', _("ID_CASE_CANCELLED", stringReplace("\\: ", "", _APP_NUM))); + if (!isBrowserIE()) { + // The case was cancelled + parent.notify('', _("ID_CASE_CANCELLED", stringReplace("\\: ", "", _APP_NUM))); + } } else { - // The case wasn't cancel - parent.notify('', data.msg); + if (!isBrowserIE()) { + // The case wasn't cancel + parent.notify('', data.msg); + } } parent.updateCasesTree(); } catch (e) { - parent.notify('', _('ID_SOMETHING_WRONG')); + if (isBrowserIE()) { + Ext.MessageBox.alert(_('ID_FAILED'), _('ID_SOMETHING_WRONG')); + } else { + parent.notify('', _('ID_SOMETHING_WRONG')); + } + } location.href = 'casesListExtJs'; },