PM-1165 "Se agrega funcion doGetSteps, para obtener los pasos evaluados"

This commit is contained in:
Freddy Daniel Rojas Valda
2015-01-10 12:05:27 -04:00
parent 3d4c29e510
commit 4ca3d127e4
2 changed files with 2 additions and 10 deletions

View File

@@ -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() );

View File

@@ -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;
}
}