Merged in luisfernandosl/processmaker/HOR-1029-3019 (pull request #4262)

HOR-1029
This commit is contained in:
Julio Cesar Laura Avendaño
2016-05-20 11:41:43 -04:00
2 changed files with 23 additions and 2 deletions

View File

@@ -109,7 +109,25 @@ class Light extends Api
{
try {
$oMobile = new \ProcessMaker\BusinessModel\Light();
$startCase = $oMobile->getProcessListStartCase($this->getUserId());
$processListStartCase = $oMobile->getProcessListStartCase($this->getUserId());
$processListStartCaseFrm = $processListStartCase[0]['forms'];
foreach ($processListStartCaseFrm as $key => $value) {
$valueAux = $value;
if (array_key_exists('formUpdateDate', $valueAux)) {
$valueAux['formUpdateDate'] = \ProcessMaker\Util\DateTime::convertUtcToIso8601($valueAux['formUpdateDate']);
}
$value = array_replace($value, $valueAux);
$processListStartCaseFrm[$key] = $value;
}
$processListStartCase[0]['forms'] = $processListStartCaseFrm;
$startCase = $processListStartCase;
} catch (\Exception $e) {
throw (new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage()));
}