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['url'] = "cases/cases_Step?UID=$stepUid&TYPE=$stepType&POSITION=$stepPosition&ACTION=EDIT";
|
||||
$stepItem['version'] = $oDocument->getDynVersion();
|
||||
break;
|
||||
case 'OUTPUT_DOCUMENT':
|
||||
$oDocument = OutputDocumentPeer::retrieveByPK( $caseStep->getStepUidObj() );
|
||||
|
||||
@@ -1968,15 +1968,6 @@ class Cases
|
||||
$oApplication = new \Applications();
|
||||
$aField = $oApplication->getSteps($app_uid, $del_index, $tas_uid, $pro_uid);
|
||||
|
||||
foreach ($aField as $fields) {
|
||||
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;
|
||||
return $aField;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user