From 0b9d4de20d44ff5717e9c38e452fe7dd7415f7df Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 31 May 2022 14:20:59 +0200 Subject: [PATCH] Fix warning --- htdocs/bom/class/bom.class.php | 1 + htdocs/core/class/commonobjectline.class.php | 3 +++ 2 files changed, 4 insertions(+) diff --git a/htdocs/bom/class/bom.class.php b/htdocs/bom/class/bom.class.php index fb7fd68e13a..5d2c0f267de 100644 --- a/htdocs/bom/class/bom.class.php +++ b/htdocs/bom/class/bom.class.php @@ -1301,6 +1301,7 @@ class BOMLine extends CommonObjectLine */ public $childBom = array(); + /** * Constructor * diff --git a/htdocs/core/class/commonobjectline.class.php b/htdocs/core/class/commonobjectline.class.php index c45e3f1698c..c1ba05cc279 100644 --- a/htdocs/core/class/commonobjectline.class.php +++ b/htdocs/core/class/commonobjectline.class.php @@ -77,6 +77,9 @@ abstract class CommonObjectLine extends CommonObject public $multilangs; public $product_type; // type in line + public $fk_product; // product id in line (when line is linked to a product) + + public $product; // To store full product object after a fetch_product() on a line public $product_ref; // ref in product table public $product_label; // label in product table public $product_desc; // desc in product table