New require for product in generateOutputField
This commit is contained in:
parent
17efd55af4
commit
2a68836375
@ -1103,6 +1103,9 @@ class FormSetupItem
|
||||
$out.= $this->langs->trans("NorProspectNorCustomer");
|
||||
}
|
||||
} elseif ($this->type == 'product') {
|
||||
if (!class_exists("Product")){
|
||||
require_once DOL_DOCUMENT_ROOT.'/product/class/product.class.php';
|
||||
}
|
||||
$product = new Product($this->db);
|
||||
$resprod = $product->fetch($this->fieldValue);
|
||||
if ($resprod > 0) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user