Merge code github > bitbucket 2014-05-23 16:35

This commit is contained in:
Julio Cesar Laura
2014-05-23 16:32:18 -04:00
75 changed files with 2274 additions and 724 deletions

View File

@@ -1466,6 +1466,22 @@ class Processes
return;
}
/**
* Remove All Fields Conditions from an array of Field Conditions and Dynaforms,
* from the arrays data.
*
* @param $aDynaform array
* @return void
*/
public function removeAllFieldCondition ($aDynaform)
{
foreach ($aDynaform as $key => $row) {
$oCriteria = new Criteria();
$oCriteria->add( FieldConditionPeer::FCD_DYN_UID, $row['DYN_UID'] );
FieldConditionPeer::doDelete( $oCriteria );
}
}
/**
* Create Field Conditions from an array of Field Conditions and Dynaforms,
* removing those Objects with the same UID, and recreaiting the records
@@ -3995,6 +4011,7 @@ class Processes
{
$this->updateProcessRow( $oData->process );
$this->removeProcessRows( $oData->process['PRO_UID'] );
$this->removeAllFieldCondition($oData->dynaforms );
$this->createTaskRows( $oData->tasks );
$this->createRouteRows( $oData->routes );
$this->createLaneRows( $oData->lanes );