PM-599 "Se pierde sesion al ingresar a history case en el case tracker..." SOLVED

Issue:
    En los listados se pierde sesion al tratar de ordenar las
    columnas (esto en: MY CASE FORMS AND DOCUMENTS, MY CASE HISTORY, MY HISTORY MESSAGES)
Cause:
    El "case tracker" es un modulo que no se inicia con un usuario de ProcessMaker, el script
    "propelTableAjax" es el encargado de generar los listado, a este script se debe acceder "without session started",
    lo cual no ocurre por lo que se redirecciona al login
Solution:
    Se ha agregado en sysGeneric a "propelTableAjax" para que este en el grupo de scripts "without session started"
    Se ha validado la variable $_SESSION["USER_LOGGED"] si esta definida o no.
This commit is contained in:
Victor Saisa Lopez
2014-10-13 17:46:40 -04:00
parent 6792fc4101
commit 7e0d396558
2 changed files with 13 additions and 7 deletions

View File

@@ -78,7 +78,7 @@
//order by
$orderBy = get_ajax_value('order');
if (isset($orderBy)) {
$orderBy = urldecode($orderBy);
$orderBy = urldecode($orderBy);
$ntable->orderBy = $orderBy;
}
@@ -126,11 +126,16 @@
return ;
}
$ntable->renderTable( 'content' );
$ntable->renderTable("content");
G::LoadClass('configuration');
$conf = new Configurations();
$conf->setConfig($ntable->__Configuration,$ntable,$conf->aConfig);
$conf->saveConfig('pagedTable',$ntable->__OBJ_UID,'',$_SESSION['USER_LOGGED'],'');
G::LoadClass("configuration");
$conf = new Configurations();
$conf->setConfig($ntable->__Configuration, $ntable, $conf->aConfig);
if (isset($_SESSION["USER_LOGGED"])) {
$conf->saveConfig("pagedTable", $ntable->__OBJ_UID, "", $_SESSION["USER_LOGGED"], "");
} else {
$conf->saveConfig("pagedTable", $ntable->__OBJ_UID);
}
?>

View File

@@ -892,6 +892,7 @@ if (! defined( 'EXECUTE_BY_CRON' )) {
$noLoginFiles[] = 'cases_NextStep';
$noLoginFiles[] = 'genericAjax';
$noLoginFiles[] = 'casesSaveDataView';
$noLoginFiles[] = "propelTableAjax";
$noLoginFolders[] = 'services';
$noLoginFolders[] = 'tracker';