Merged in bugfix/HOR-3280 (pull request #5693)
HOR-3280 Approved-by: Julio Cesar Laura Avendaño <contact@julio-laura.com> Approved-by: Paula Quispe <paula.quispe@processmaker.com>
This commit is contained in:
@@ -632,8 +632,20 @@ class Light extends Api
|
|||||||
$dataList['oldestthan'] = $oldestthan;
|
$dataList['oldestthan'] = $oldestthan;
|
||||||
Validator::throwExceptionIfDataNotMetIso8601Format($dataList, $this->arrayFieldIso8601);
|
Validator::throwExceptionIfDataNotMetIso8601Format($dataList, $this->arrayFieldIso8601);
|
||||||
$dataList = DateTime::convertDataToUtc($dataList, $this->arrayFieldIso8601);
|
$dataList = DateTime::convertDataToUtc($dataList, $this->arrayFieldIso8601);
|
||||||
$oCases = new \ProcessMaker\BusinessModel\Cases();
|
|
||||||
$response = $oCases->getList($dataList);
|
/*----------------------------------********---------------------------------*/
|
||||||
|
if (true) {
|
||||||
|
//In enterprise version this block of code should always be executed
|
||||||
|
//In community version this block of code is deleted and is executed the other
|
||||||
|
$oCases = new \ProcessMaker\BusinessModel\Lists();
|
||||||
|
$response = $oCases->getList('unassigned', $dataList);
|
||||||
|
} else {
|
||||||
|
/*----------------------------------********---------------------------------*/
|
||||||
|
$oCases = new \ProcessMaker\BusinessModel\Cases();
|
||||||
|
$response = $oCases->getList($dataList);
|
||||||
|
/*----------------------------------********---------------------------------*/
|
||||||
|
}
|
||||||
|
/*----------------------------------********---------------------------------*/
|
||||||
$result = $this->parserDataUnassigned($response);
|
$result = $this->parserDataUnassigned($response);
|
||||||
return DateTime::convertUtcToIso8601($result, $this->arrayFieldIso8601);
|
return DateTime::convertUtcToIso8601($result, $this->arrayFieldIso8601);
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user