Update api_contacts.class.php

This commit is contained in:
Frédéric FRANCE 2019-10-13 06:12:53 +02:00 committed by GitHub
parent f6a2fd6eb8
commit 9eaad23564
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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