Update api_thirdparties.class.php
This commit is contained in:
parent
8c8afa4b46
commit
1114f0ee3d
@ -1153,7 +1153,7 @@ class Thirdparties extends DolibarrApi
|
|||||||
if ($account->update(DolibarrApiAccess::$user) < 0)
|
if ($account->update(DolibarrApiAccess::$user) < 0)
|
||||||
throw new RestException(500, 'Error updating values');
|
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)
|
if ($account->update(DolibarrApiAccess::$user) < 0)
|
||||||
throw new RestException(500, 'Error updating values');
|
throw new RestException(500, 'Error updating values');
|
||||||
|
|
||||||
return $account;
|
return $this->_cleanObjectDatas($account);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user