From 986cee7ce4c41c8b66f28d533f9d3c3527c9d77d Mon Sep 17 00:00:00 2001 From: Julio Cesar Laura Date: Tue, 11 Jun 2013 13:01:21 -0400 Subject: [PATCH] BUG 12116 Muestra un error al darle click en Reassing SOLVED - Missing validation when variable APP_UIDS not sent - Add validation when variable APP_UIDS not sent --- .../methods/cases/proxyReassignCasesList.php | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/workflow/engine/methods/cases/proxyReassignCasesList.php b/workflow/engine/methods/cases/proxyReassignCasesList.php index e65ccaea3..def13a50d 100755 --- a/workflow/engine/methods/cases/proxyReassignCasesList.php +++ b/workflow/engine/methods/cases/proxyReassignCasesList.php @@ -1,10 +1,10 @@ message = G::LoadTranslation('ID_LOGIN_AGAIN'); - $response->lostSession = true; - print G::json_encode( $response ); - die(); +if (!isset($_SESSION['USER_LOGGED'])) { + $response = new stdclass(); + $response->message = G::LoadTranslation('ID_LOGIN_AGAIN'); + $response->lostSession = true; + print G::json_encode( $response ); + die(); } $callback = isset( $_POST['callback'] ) ? $_POST['callback'] : 'stcCallback1001'; $dir = isset( $_POST['dir'] ) ? $_POST['dir'] : 'DESC'; @@ -20,7 +20,11 @@ $action = isset( $_GET['action'] ) ? $_GET['action'] : (isset( $_POST['action'] $type = isset( $_GET['type'] ) ? $_GET['type'] : (isset( $_POST['type'] ) ? $_POST['type'] : 'extjs'); $user = isset( $_POST['user'] ) ? $_POST['user'] : ''; -$sentUids = explode( ',', $_POST['APP_UIDS'] ); +if (isset($_POST['APP_UIDS'])) { + $sentUids = explode( ',', $_POST['APP_UIDS'] ); +} else { + $sentUids = array(); +} $allUidsRecords = array (); $allTasUids = array ();