Merge pull request #21591 from bb2a/FIX---php-V8-form-setup

FIX - php V8 form setup
This commit is contained in:
Laurent Destailleur 2022-08-03 18:24:44 +02:00 committed by GitHub
commit 8627892871
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1093,6 +1093,7 @@ class FormSetupItem
$out.= $this->langs->trans("NorProspectNorCustomer");
}
} elseif ($this->type == 'product') {
require_once DOL_DOCUMENT_ROOT.'/product/class/product.class.php';
$product = new Product($this->db);
$resprod = $product->fetch($this->fieldValue);
if ($resprod > 0) {