Fixed missing trigger on contact delete

This commit is contained in:
Thomas 2020-02-12 13:50:58 +01:00 committed by Laurent Destailleur
parent e9688e66c0
commit 9b0b5f755b

View File

@ -293,7 +293,7 @@ class Contacts extends DolibarrApi
throw new RestException(401, 'Access not allowed for login ' . DolibarrApiAccess::$user->login); throw new RestException(401, 'Access not allowed for login ' . DolibarrApiAccess::$user->login);
} }
$this->contact->oldcopy = clone $this->contact; $this->contact->oldcopy = clone $this->contact;
return $this->contact->delete($id); return $this->contact->delete();
} }
/** /**