Merged in luisfernandosl/processmaker/HOR-1029-3019 (pull request #4262)
HOR-1029
This commit is contained in:
@@ -86,7 +86,10 @@ class Light
|
|||||||
$c = 0;
|
$c = 0;
|
||||||
foreach ($forms as $k => $form) {
|
foreach ($forms as $k => $form) {
|
||||||
if ($form['step_type_obj'] == "DYNAFORM") {
|
if ($form['step_type_obj'] == "DYNAFORM") {
|
||||||
|
$dynaForm = \DynaformPeer::retrieveByPK($form['step_uid_obj']);
|
||||||
|
|
||||||
$newForm[$c]['formId'] = $form['step_uid_obj'];
|
$newForm[$c]['formId'] = $form['step_uid_obj'];
|
||||||
|
$newForm[$c]['formUpdateDate'] = $dynaForm->getDynUpdateDate();
|
||||||
$newForm[$c]['index'] = $c+1;
|
$newForm[$c]['index'] = $c+1;
|
||||||
$newForm[$c]['title'] = $form['obj_title'];
|
$newForm[$c]['title'] = $form['obj_title'];
|
||||||
$newForm[$c]['description'] = $form['obj_description'];
|
$newForm[$c]['description'] = $form['obj_description'];
|
||||||
|
|||||||
@@ -109,7 +109,25 @@ class Light extends Api
|
|||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$oMobile = new \ProcessMaker\BusinessModel\Light();
|
$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) {
|
} catch (\Exception $e) {
|
||||||
throw (new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage()));
|
throw (new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage()));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user