Debug v23

This commit is contained in:
Laurent Destailleur
2026-01-23 22:43:56 +01:00
parent de877188c1
commit 455f91c215
6 changed files with 8 additions and 5 deletions

View File

@@ -5512,7 +5512,7 @@ abstract class CommonObject
$product_static = new Product($this->db);
$product_static->fetch($line->fk_product);
$product_static->ref = $line->ref; //can change ref in hook
$product_static->ref = (string) $line->ref; //can change ref in hook
$product_static->label = !empty($line->label) ? $line->label : ""; //can change label in hook
$text = $product_static->getNomUrl(1);
@@ -5729,7 +5729,7 @@ abstract class CommonObject
} elseif (!empty($line->fk_product)) {
$productstatic = new Product($this->db);
$productstatic->id = $line->fk_product;
$productstatic->ref = $line->ref;
$productstatic->ref = (string) $line->ref;
$productstatic->type = $line->fk_product_type;
if (empty($productstatic->ref)) {
$line->fetch_product();