From 158d0458df6c77ef7ef8d7219f88d5656cabbc2e Mon Sep 17 00:00:00 2001 From: hystepik Date: Thu, 8 Jun 2023 22:04:07 +0200 Subject: [PATCH] Fix : webhook object creation --- htdocs/webhook/class/target.class.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/htdocs/webhook/class/target.class.php b/htdocs/webhook/class/target.class.php index a92bbfe93a2..099db89a85b 100644 --- a/htdocs/webhook/class/target.class.php +++ b/htdocs/webhook/class/target.class.php @@ -229,11 +229,6 @@ class Target extends CommonObject return $resultcreate; } - $resultvalidate = $this->validate($user, $notrigger); - if ($resultvalidate <= 0) { - return $resultvalidate; - } - return $this->id; }