Update api_thirdparties.class.php

This commit is contained in:
Frédéric FRANCE 2019-10-13 06:19:40 +02:00 committed by GitHub
parent 0ae1e8c2a9
commit 352df8241e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -488,7 +488,7 @@ class Thirdparties extends DolibarrApi
if( ! DolibarrApi::_checkAccessToResource('societe', $this->company->id)) {
throw new RestException(401, 'Access not allowed for login '.DolibarrApiAccess::$user->login);
}
$this->company->oldcopy = $this->company;
$this->company->oldcopy = clone $this->company;
return $this->company->delete($id);
}