mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-06 17:13:03 +01:00
Debug v23
This commit is contained in:
@@ -1115,12 +1115,14 @@ class Orders extends DolibarrApi
|
||||
$result = $this->db->query($sql);
|
||||
|
||||
if ($result) {
|
||||
$i = 0;
|
||||
$num = $this->db->num_rows($result);
|
||||
if ($num <= 0) {
|
||||
throw new RestException(404, 'Shipments not found ');
|
||||
}
|
||||
$i = 0;
|
||||
while ($i < $num) {
|
||||
//$min = min($num, ($limit <= 0 ? $num : $limit));
|
||||
$min = $num;
|
||||
while ($i < $min) {
|
||||
$obj = $this->db->fetch_object($result);
|
||||
$shipment_static = new Expedition($this->db);
|
||||
if ($shipment_static->fetch($obj->rowid)) {
|
||||
|
||||
Reference in New Issue
Block a user