Merge pull request #19792 from ptibogxiv/patch-458

FIX bom.class.php
This commit is contained in:
Laurent Destailleur 2022-01-12 11:18:29 +01:00 committed by GitHub
commit 3daf7d493c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -790,7 +790,7 @@ class BOM extends CommonObject
$label .= '<br><b>'.$langs->trans('Label').':</b> '.$this->label;
}
if (!empty($this->fk_product) && $this->fk_product > 0) {
include_once DOL_DOCUMENT_ROO.'/product/class/product.class.php';
include_once DOL_DOCUMENT_ROOT.'/product/class/product.class.php';
$product = new Product($db);
$resultFetch = $product->fetch($this->fk_product);
if ($resultFetch > 0) {