fix Fatal error: Uncaught Error: Call to a member function formSelectWarehouses() (#37584)
This commit is contained in:
parent
371bd26ad8
commit
5e27e2e1d1
1 changed files with 4 additions and 0 deletions
|
|
@ -1897,6 +1897,10 @@ if ($resql) {
|
|||
if ($obj->warehouse > 0) {
|
||||
print img_picto('', 'stock', 'class="paddingrightonly"');
|
||||
}
|
||||
if (!is_object($formproduct)) {
|
||||
require_once DOL_DOCUMENT_ROOT.'/product/class/html.formproduct.class.php';
|
||||
$formproduct = new FormProduct($db);
|
||||
}
|
||||
$formproduct->formSelectWarehouses($_SERVER['PHP_SELF'], $obj->warehouse, 'none');
|
||||
print "</td>\n";
|
||||
if (!$i) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue