Merge pull request #2399 from marcoAntonioNina/BUG-14742
BUG-14742 Condiciones de processmaker SOLVED
This commit is contained in:
@@ -1410,6 +1410,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
|
||||
@@ -3606,6 +3622,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