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
This commit is contained in:
Julio Cesar Laura
2013-06-11 13:01:21 -04:00
parent 015d3df9be
commit 986cee7ce4

View File

@@ -1,10 +1,10 @@
<?php
if (!isset($_SESSION['USER_LOGGED'])) {
$response = new stdclass();
$response->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 ();