Merge pull request #1273 from julceslauhub/master
BUG 10550 After the session has expired the filters do not work SOLVED
This commit is contained in:
@@ -1,4 +1,10 @@
|
||||
<?php
|
||||
if (!isset($_SESSION['USER_LOGGED'])) {
|
||||
$result = new stdclass();
|
||||
$result->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";
|
||||
|
||||
@@ -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
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@@ -774,6 +774,7 @@ if (! defined( 'EXECUTE_BY_CRON' )) {
|
||||
$noLoginFiles[] = 'fields_Ajax';
|
||||
$noLoginFiles[] = 'appFolderAjax';
|
||||
$noLoginFiles[] = 'steps_Ajax';
|
||||
$noLoginFiles[] = 'proxyCasesList';
|
||||
|
||||
$noLoginFolders[] = 'services';
|
||||
$noLoginFolders[] = 'tracker';
|
||||
|
||||
Reference in New Issue
Block a user