Update api_thirdparties.class.php

This commit is contained in:
Frédéric FRANCE 2020-04-13 09:25:06 +02:00 committed by GitHub
parent 8c8afa4b46
commit 1114f0ee3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1153,7 +1153,7 @@ class Thirdparties extends DolibarrApi
if ($account->update(DolibarrApiAccess::$user) < 0)
throw new RestException(500, 'Error updating values');
return $account;
return $this->_cleanObjectDatas($account);
}
/**
@ -1191,7 +1191,7 @@ class Thirdparties extends DolibarrApi
if ($account->update(DolibarrApiAccess::$user) < 0)
throw new RestException(500, 'Error updating values');
return $account;
return $this->_cleanObjectDatas($account);
}
/**