mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Co-authored-by: Hystepik <lmarcouiller@nltechno.com>
This commit is contained in:
parent
9153636e02
commit
56d8564bce
|
|
@ -78,7 +78,7 @@ class InterfaceWebhookTriggers extends DolibarrTriggers
|
|||
$target_url = $static_object->fetchAll();
|
||||
foreach ($target_url as $key => $tmpobject) {
|
||||
$actionarray = explode(",", $tmpobject->trigger_codes);
|
||||
if (is_array($actionarray) && in_array($action, $actionarray)) {
|
||||
if ($tmpobject->status == Target::STATUS_VALIDATED && is_array($actionarray) && in_array($action, $actionarray)) {
|
||||
// Build the answer object
|
||||
$resobject = new stdClass();
|
||||
$resobject->triggercode = $action;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user