Fix doc
This commit is contained in:
parent
aafb54fbc3
commit
c1196c7e4d
@ -301,7 +301,7 @@ class MultiCurrencies extends DolibarrApi
|
|||||||
*
|
*
|
||||||
* @param int $id Currency ID
|
* @param int $id Currency ID
|
||||||
* @param array $request_data Request data
|
* @param array $request_data Request data
|
||||||
* @return array The currency with the new rate
|
* @return Object|false Object with cleaned properties
|
||||||
*
|
*
|
||||||
* @throws RestException
|
* @throws RestException
|
||||||
*/
|
*/
|
||||||
@ -343,9 +343,12 @@ class MultiCurrencies extends DolibarrApi
|
|||||||
|
|
||||||
// Clear all fields out of interrest
|
// Clear all fields out of interrest
|
||||||
foreach ($object as $key => $value) {
|
foreach ($object as $key => $value) {
|
||||||
if ($key == "rate") $object->$key = $this->_cleanObjectDatasRate($object->$key);
|
if ($key == "rate") {
|
||||||
if ($key == "id" || $key == "code" || $key == "rate" || $key == "name")
|
$object->$key = $this->_cleanObjectDatasRate($object->$key);
|
||||||
|
}
|
||||||
|
if ($key == "id" || $key == "code" || $key == "rate" || $key == "name") {
|
||||||
continue;
|
continue;
|
||||||
|
}
|
||||||
unset($object->$key);
|
unset($object->$key);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user