fix Fatal error: Uncaught Error: Call to a member function formSelectWarehouses() (#37584)

This commit is contained in:
atm-jonathan 2026-03-23 14:27:37 +01:00 committed by GitHub
parent 371bd26ad8
commit 5e27e2e1d1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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) {