Correcion de flag en limit para CASES LIST

This commit is contained in:
Brayan Osmar Pereyra Suxo
2014-04-02 12:17:18 -04:00
parent 0c6d7800e4
commit a63f25704b
2 changed files with 13 additions and 13 deletions

View File

@@ -61,7 +61,7 @@ class Cases
if ($start != 0) {
$start--;
}
if ($limit == 'config' || (abs((int)$limit)) == 0) {
if ((abs((int)$limit)) == 0) {
G::LoadClass("configuration");
$conf = new \Configurations();
$generalConfCasesList = $conf->getConfiguration('ENVIRONMENT_SETTINGS', '');

View File

@@ -34,7 +34,7 @@ class Cases extends Api
*/
public function doGetCasesListToDo(
$start = 0,
$limit = 'config',
$limit = 0,
$sort = 'APP_CACHE_VIEW.APP_NUMBER',
$dir = 'DESC',
$cat_uid = '',
@@ -81,7 +81,7 @@ class Cases extends Api
*/
public function doGetCasesListToDoPaged(
$start = 0,
$limit = 'config',
$limit = 0,
$sort = 'APP_CACHE_VIEW.APP_NUMBER',
$dir = 'DESC',
$cat_uid = '',
@@ -128,7 +128,7 @@ class Cases extends Api
*/
public function doGetCasesListDraft(
$start = 0,
$limit = 'config',
$limit = 0,
$sort = 'APP_CACHE_VIEW.APP_NUMBER',
$dir = 'DESC',
$cat_uid = '',
@@ -175,7 +175,7 @@ class Cases extends Api
*/
public function doGetCasesListDraftPaged(
$start = 0,
$limit = 'config',
$limit = 0,
$sort = 'APP_CACHE_VIEW.APP_NUMBER',
$dir = 'DESC',
$cat_uid = '',
@@ -222,7 +222,7 @@ class Cases extends Api
*/
public function doGetCasesListParticipated(
$start = 0,
$limit = 'config',
$limit = 0,
$sort = 'APP_CACHE_VIEW.APP_NUMBER',
$dir = 'DESC',
$cat_uid = '',
@@ -269,7 +269,7 @@ class Cases extends Api
*/
public function doGetCasesListParticipatedPaged(
$start = 0,
$limit = 'config',
$limit = 0,
$sort = 'APP_CACHE_VIEW.APP_NUMBER',
$dir = 'DESC',
$cat_uid = '',
@@ -316,7 +316,7 @@ class Cases extends Api
*/
public function doGetCasesListUnassigned(
$start = 0,
$limit = 'config',
$limit = 0,
$sort = 'APP_CACHE_VIEW.APP_NUMBER',
$dir = 'DESC',
$cat_uid = '',
@@ -363,7 +363,7 @@ class Cases extends Api
*/
public function doGetCasesListUnassignedPaged(
$start = 0,
$limit = 'config',
$limit = 0,
$sort = 'APP_CACHE_VIEW.APP_NUMBER',
$dir = 'DESC',
$cat_uid = '',
@@ -410,7 +410,7 @@ class Cases extends Api
*/
public function doGetCasesListPaused(
$start = 0,
$limit = 'config',
$limit = 0,
$sort = 'APP_CACHE_VIEW.APP_NUMBER',
$dir = 'DESC',
$cat_uid = '',
@@ -457,7 +457,7 @@ class Cases extends Api
*/
public function doGetCasesListPausedPaged(
$start = 0,
$limit = 'config',
$limit = 0,
$sort = 'APP_CACHE_VIEW.APP_NUMBER',
$dir = 'DESC',
$cat_uid = '',
@@ -508,7 +508,7 @@ class Cases extends Api
*/
public function doGetCasesListAdvancedSearch(
$start = 0,
$limit = 'config',
$limit = 0,
$sort = 'APP_CACHE_VIEW.APP_NUMBER',
$dir = 'DESC',
$cat_uid = '',
@@ -567,7 +567,7 @@ class Cases extends Api
*/
public function doGetCasesListAdvancedSearchPaged(
$start = 0,
$limit = 'config',
$limit = 0,
$sort = 'APP_CACHE_VIEW.APP_NUMBER',
$dir = 'DESC',
$cat_uid = '',