mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-08 09:01:40 +01:00
Debug v23
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user