fix in trigger assignment
This commit is contained in:
@@ -341,10 +341,10 @@ class Light
|
|||||||
|
|
||||||
$triggers = $oCase->loadTriggers( $tas_uid, 'ASSIGN_TASK', '-1', 'BEFORE');
|
$triggers = $oCase->loadTriggers( $tas_uid, 'ASSIGN_TASK', '-1', 'BEFORE');
|
||||||
if (isset($triggers)){
|
if (isset($triggers)){
|
||||||
$appFields = $oCase->loadCase( $app_uid );
|
$cases = new \ProcessMaker\BusinessModel\Cases();
|
||||||
$Fields = $oCase->ExecuteTriggers( $tas_uid, 'ASSIGN_TASK', '-1', 'BEFORE', $appFields );
|
foreach($triggers as $trigger){
|
||||||
$appFields['APP_DATA'] = array_merge( $appFields['APP_DATA'], $Fields );
|
$cases->putExecuteTriggerCase($app_uid, $trigger['TRI_UID'], $usr_uid);
|
||||||
$oCase->updateCase( $app_uid, $appFields );
|
}
|
||||||
}
|
}
|
||||||
$oDerivation = new \Derivation();
|
$oDerivation = new \Derivation();
|
||||||
$aData = array();
|
$aData = array();
|
||||||
|
|||||||
Reference in New Issue
Block a user