FIX fetch of product with modulebuilder load too much data
This commit is contained in:
parent
1e735c48aa
commit
c75fbb7642
@ -7296,7 +7296,11 @@ abstract class CommonObject
|
|||||||
dol_include_once($InfoFieldList[1]);
|
dol_include_once($InfoFieldList[1]);
|
||||||
if ($classname && class_exists($classname)) {
|
if ($classname && class_exists($classname)) {
|
||||||
$object = new $classname($this->db);
|
$object = new $classname($this->db);
|
||||||
|
if ($object->element === 'product') { // Special cas for product because default valut of fetch are wrong
|
||||||
|
$object->fetch($value, '', '', '', 0, 1, 1);
|
||||||
|
} else {
|
||||||
$object->fetch($value);
|
$object->fetch($value);
|
||||||
|
}
|
||||||
$value = $object->getNomUrl($getnomurlparam, $getnomurlparam2);
|
$value = $object->getNomUrl($getnomurlparam, $getnomurlparam2);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user