diff --git a/workflow/engine/methods/cases/proxyCasesList.php b/workflow/engine/methods/cases/proxyCasesList.php index 3cb23c7b9..c34925477 100755 --- a/workflow/engine/methods/cases/proxyCasesList.php +++ b/workflow/engine/methods/cases/proxyCasesList.php @@ -1,4 +1,10 @@ error = G::LoadTranslation('ID_LOGIN_AGAIN'); + die(G::json_encode($result)); +} + //Getting the extJs parameters $callback = isset( $_POST["callback"] ) ? $_POST["callback"] : "stcCallback1001"; $dir = isset( $_POST["dir"] ) ? $_POST["dir"] : "DESC"; diff --git a/workflow/engine/templates/cases/casesList.js b/workflow/engine/templates/cases/casesList.js index e92d1922c..169c1ab89 100644 --- a/workflow/engine/templates/cases/casesList.js +++ b/workflow/engine/templates/cases/casesList.js @@ -714,6 +714,19 @@ Ext.onReady ( function() { PMExt.notify('ERROR', response.reader.jsonData.message); //PMExt.error } + }, + exception: function(dp, type, action, options, response, arg) { + responseObject = Ext.util.JSON.decode(response.responseText); + if (typeof(responseObject.error) != 'undefined') { + Ext.Msg.show({ + title: _('ID_ERROR'), + msg: responseObject.error, + fn: function(){parent.parent.location = '../login/login';}, + animEl: 'elId', + icon: Ext.MessageBox.ERROR, + buttons: Ext.MessageBox.OK + }); + } } } }); diff --git a/workflow/public_html/sysGeneric.php b/workflow/public_html/sysGeneric.php index 71078dd6c..e9ef64c98 100755 --- a/workflow/public_html/sysGeneric.php +++ b/workflow/public_html/sysGeneric.php @@ -774,6 +774,7 @@ if (! defined( 'EXECUTE_BY_CRON' )) { $noLoginFiles[] = 'fields_Ajax'; $noLoginFiles[] = 'appFolderAjax'; $noLoginFiles[] = 'steps_Ajax'; + $noLoginFiles[] = 'proxyCasesList'; $noLoginFolders[] = 'services'; $noLoginFolders[] = 'tracker';