Merged in cochalo/processmaker/PM-1638 (pull request #1474)
PM-1638: No realiza las busquedas correctamente
This commit is contained in:
@@ -9,22 +9,22 @@ if (!isset($_SESSION['USER_LOGGED'])) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Getting the extJs parameters
|
//Getting the extJs parameters
|
||||||
$callback = isset( $_POST["callback"] ) ? $_POST["callback"] : "stcCallback1001";
|
$callback = isset( $_REQUEST["callback"] ) ? $_REQUEST["callback"] : "stcCallback1001";
|
||||||
$dir = isset( $_POST["dir"] ) ? $_POST["dir"] : "DESC";
|
$dir = isset( $_REQUEST["dir"] ) ? $_REQUEST["dir"] : "DESC";
|
||||||
$sort = isset( $_POST["sort"] ) ? $_POST["sort"] : "";
|
$sort = isset( $_REQUEST["sort"] ) ? $_REQUEST["sort"] : "";
|
||||||
$start = isset( $_POST["start"] ) ? $_POST["start"] : "0";
|
$start = isset( $_REQUEST["start"] ) ? $_REQUEST["start"] : "0";
|
||||||
$limit = isset( $_POST["limit"] ) ? $_POST["limit"] : "25";
|
$limit = isset( $_REQUEST["limit"] ) ? $_REQUEST["limit"] : "25";
|
||||||
$filter = isset( $_POST["filter"] ) ? $_POST["filter"] : "";
|
$filter = isset( $_REQUEST["filter"] ) ? $_REQUEST["filter"] : "";
|
||||||
$process = isset( $_POST["process"] ) ? $_POST["process"] : "";
|
$process = isset( $_REQUEST["process"] ) ? $_REQUEST["process"] : "";
|
||||||
$category = isset( $_POST["category"] ) ? $_POST["category"] : "";
|
$category = isset( $_REQUEST["category"] ) ? $_REQUEST["category"] : "";
|
||||||
$status = isset( $_POST["status"] ) ? strtoupper( $_POST["status"] ) : "";
|
$status = isset( $_REQUEST["status"] ) ? strtoupper( $_REQUEST["status"] ) : "";
|
||||||
$user = isset( $_POST["user"] ) ? $_POST["user"] : "";
|
$user = isset( $_REQUEST["user"] ) ? $_REQUEST["user"] : "";
|
||||||
$search = isset( $_POST["search"] ) ? $_POST["search"] : "";
|
$search = isset( $_REQUEST["search"] ) ? $_REQUEST["search"] : "";
|
||||||
$action = isset( $_GET["action"] ) ? $_GET["action"] : (isset( $_POST["action"] ) ? $_POST["action"] : "todo");
|
$action = isset( $_GET["action"] ) ? $_GET["action"] : (isset( $_REQUEST["action"] ) ? $_REQUEST["action"] : "todo");
|
||||||
$type = isset( $_GET["type"] ) ? $_GET["type"] : (isset( $_POST["type"] ) ? $_POST["type"] : "extjs");
|
$type = isset( $_GET["type"] ) ? $_GET["type"] : (isset( $_REQUEST["type"] ) ? $_REQUEST["type"] : "extjs");
|
||||||
$dateFrom = isset( $_POST["dateFrom"] ) ? substr( $_POST["dateFrom"], 0, 10 ) : "";
|
$dateFrom = isset( $_REQUEST["dateFrom"] ) ? substr( $_REQUEST["dateFrom"], 0, 10 ) : "";
|
||||||
$dateTo = isset( $_POST["dateTo"] ) ? substr( $_POST["dateTo"], 0, 10 ) : "";
|
$dateTo = isset( $_REQUEST["dateTo"] ) ? substr( $_REQUEST["dateTo"], 0, 10 ) : "";
|
||||||
$first = isset( $_POST["first"] ) ? true :false;
|
$first = isset( $_REQUEST["first"] ) ? true :false;
|
||||||
|
|
||||||
if ($sort == 'CASE_SUMMARY' || $sort == 'CASE_NOTES_COUNT') {
|
if ($sort == 'CASE_SUMMARY' || $sort == 'CASE_NOTES_COUNT') {
|
||||||
$sort = 'APP_NUMBER';//DEFAULT VALUE
|
$sort = 'APP_NUMBER';//DEFAULT VALUE
|
||||||
|
|||||||
Reference in New Issue
Block a user