Merge code github > bitbucket 2014-05-23 16:35
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user