FIX API to get object does not return data o flinked objects
This commit is contained in:
parent
d7113a3602
commit
d4ade7b935
@ -75,6 +75,7 @@ class Invoices extends DolibarrApi
|
||||
throw new RestException(401, 'Access not allowed for login '.DolibarrApiAccess::$user->login);
|
||||
}
|
||||
|
||||
$this->invoice->fetchObjectLinked();
|
||||
return $this->_cleanObjectDatas($this->invoice);
|
||||
}
|
||||
|
||||
|
||||
@ -76,6 +76,7 @@ class SupplierInvoices extends DolibarrApi
|
||||
throw new RestException(401, 'Access not allowed for login '.DolibarrApiAccess::$user->login);
|
||||
}
|
||||
|
||||
$this->invoice->fetchObjectLinked();
|
||||
return $this->_cleanObjectDatas($this->invoice);
|
||||
}
|
||||
|
||||
|
||||
@ -76,6 +76,7 @@ class SupplierOrders extends DolibarrApi
|
||||
throw new RestException(401, 'Access not allowed for login '.DolibarrApiAccess::$user->login);
|
||||
}
|
||||
|
||||
$this->order->fetchObjectLinked();
|
||||
return $this->_cleanObjectDatas($this->order);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user