diff --git a/htdocs/webhook/class/target.class.php b/htdocs/webhook/class/target.class.php index 0ee668af87f..912c3d779b4 100644 --- a/htdocs/webhook/class/target.class.php +++ b/htdocs/webhook/class/target.class.php @@ -223,7 +223,7 @@ class Target extends CommonObject public function create(User $user, $notrigger = 0) { $resultcreate = $this->createCommon($user, $notrigger); - $this->ref = $this->id; + $this->ref = (string) $this->id; if ($resultcreate <= 0) { return $resultcreate;