BUG 10550 After the session has expired the filters do not work SOLVED

- Missing validation when session is expired
- Add validation when session is expired
This commit is contained in:
Julio Cesar Laura
2013-02-01 14:45:47 -04:00
parent 8b7fa74c34
commit 57a9aed2ce
3 changed files with 20 additions and 0 deletions

View File

@@ -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";

View File

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

View File

@@ -774,6 +774,7 @@ if (! defined( 'EXECUTE_BY_CRON' )) {
$noLoginFiles[] = 'fields_Ajax';
$noLoginFiles[] = 'appFolderAjax';
$noLoginFiles[] = 'steps_Ajax';
$noLoginFiles[] = 'proxyCasesList';
$noLoginFolders[] = 'services';
$noLoginFolders[] = 'tracker';