fix runtrigger
This commit is contained in:
parent
0db9999fa1
commit
2d8c854c59
1 changed files with 1 additions and 1 deletions
|
|
@ -81,7 +81,7 @@ class InterfaceWebhookTriggers extends DolibarrTriggers
|
|||
$actionarray = explode(",", $tmpobject->trigger_codes);
|
||||
|
||||
// Test on Target status
|
||||
$testontargetstatus = $tmpobject->status == Target::STATUS_AUTOMATIC_TRIGGER || (Target::STATUS_MANUAL_TRIGGER && !empty($sendmanualtriggers));
|
||||
$testontargetstatus = ($tmpobject->status == Target::STATUS_AUTOMATIC_TRIGGER || (Target::STATUS_MANUAL_TRIGGER && !empty($sendmanualtriggers)));
|
||||
if (((!empty($object->context["actiontrigger"]) && in_array($object->context["actiontrigger"], array("sendtrigger", "testsend"))) || $testontargetstatus) && is_array($actionarray) && in_array($action, $actionarray)) {
|
||||
// Build the answer object
|
||||
$resobject = new stdClass();
|
||||
|
|
|
|||
Loading…
Reference in a new issue