PM-1165 "Se agrega funcion doGetSteps, para obtener los pasos evaluados"
This commit is contained in:
@@ -923,6 +923,7 @@ class Applications
|
|||||||
|
|
||||||
$stepItem['title'] = $oDocument->getDynTitle();
|
$stepItem['title'] = $oDocument->getDynTitle();
|
||||||
$stepItem['url'] = "cases/cases_Step?UID=$stepUid&TYPE=$stepType&POSITION=$stepPosition&ACTION=EDIT";
|
$stepItem['url'] = "cases/cases_Step?UID=$stepUid&TYPE=$stepType&POSITION=$stepPosition&ACTION=EDIT";
|
||||||
|
$stepItem['version'] = $oDocument->getDynVersion();
|
||||||
break;
|
break;
|
||||||
case 'OUTPUT_DOCUMENT':
|
case 'OUTPUT_DOCUMENT':
|
||||||
$oDocument = OutputDocumentPeer::retrieveByPK( $caseStep->getStepUidObj() );
|
$oDocument = OutputDocumentPeer::retrieveByPK( $caseStep->getStepUidObj() );
|
||||||
|
|||||||
@@ -1968,15 +1968,6 @@ class Cases
|
|||||||
$oApplication = new \Applications();
|
$oApplication = new \Applications();
|
||||||
$aField = $oApplication->getSteps($app_uid, $del_index, $tas_uid, $pro_uid);
|
$aField = $oApplication->getSteps($app_uid, $del_index, $tas_uid, $pro_uid);
|
||||||
|
|
||||||
foreach ($aField as $fields) {
|
return $aField;
|
||||||
if ($fields['type'] == 'DYNAFORM') {
|
|
||||||
$oDynaform = \DynaformPeer::retrieveByPK($fields['id']);
|
|
||||||
$dynaform_version = $oDynaform->getDynVersion();
|
|
||||||
$aFieldConsolidate[] = array_merge($fields, array("version" => $dynaform_version));
|
|
||||||
} else {
|
|
||||||
$aFieldConsolidate[] = $fields;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return $aFieldConsolidate;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user