From 7e0d396558e0ab2c5de9df2bfb0a5f5aaef5cb1b Mon Sep 17 00:00:00 2001 From: Victor Saisa Lopez Date: Mon, 13 Oct 2014 17:46:40 -0400 Subject: [PATCH] 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. --- gulliver/methods/propelTableAjax.php | 19 ++++++++++++------- workflow/public_html/sysGeneric.php | 1 + 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/gulliver/methods/propelTableAjax.php b/gulliver/methods/propelTableAjax.php index a0f06a5cc..d76a17f72 100755 --- a/gulliver/methods/propelTableAjax.php +++ b/gulliver/methods/propelTableAjax.php @@ -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); +} -?> diff --git a/workflow/public_html/sysGeneric.php b/workflow/public_html/sysGeneric.php index 4fe42dff7..56514f8fb 100755 --- a/workflow/public_html/sysGeneric.php +++ b/workflow/public_html/sysGeneric.php @@ -892,6 +892,7 @@ if (! defined( 'EXECUTE_BY_CRON' )) { $noLoginFiles[] = 'cases_NextStep'; $noLoginFiles[] = 'genericAjax'; $noLoginFiles[] = 'casesSaveDataView'; + $noLoginFiles[] = "propelTableAjax"; $noLoginFolders[] = 'services'; $noLoginFolders[] = 'tracker';