2
0
forked from Wavyzz/dolibarr

Debug v23

This commit is contained in:
Laurent Destailleur
2025-09-28 22:20:44 +02:00
parent 0564b44678
commit 131d1390bc
14 changed files with 54 additions and 23 deletions

View File

@@ -191,7 +191,8 @@ class MyModuleApi extends DolibarrApi
$i = 0;
if ($result) {
$num = $this->db->num_rows($result);
while ($i < $num) {
$min = min($num, ($limit <= 0 ? $num : $limit));
while ($i < $min) {
$obj = $this->db->fetch_object($result);
$tmp_object = new MyObject($this->db);
if ($tmp_object->fetch($obj->rowid)) {