FIX: Make html form warehouse select filter between closed and opened work if const ENTREPOT_EXTRA_STATUS not set (#31508)

* Update html.formproduct.class.php

Fix filter status variable that is reset if global constant ENTREPOT_EXTRA_STATUS is not set. This prevents the warehouse list to display only opened or closed warehouse is the global const is not set.

* Update html.formproduct.class.php

Fix typo
This commit is contained in:
omogenot 2024-10-23 21:00:56 +02:00 committed by GitHub
parent 5e13ea5556
commit f869034c8c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -298,7 +298,7 @@ class FormProduct
dol_syslog(get_class($this)."::selectWarehouses " . (is_array($selected) ? 'selected is array' : $selected) . ", $htmlname, $filterstatus, $empty, $disabled, $fk_product, $empty_label, $showstock, $forcecombo, $morecss", LOG_DEBUG);
$out = '';
if (!getDolGlobalString('ENTREPOT_EXTRA_STATUS')) {
if ((!getDolGlobalString('ENTREPOT_EXTRA_STATUS')) && ($filterstatus==="warehouseinternal")) {
$filterstatus = '';
}
if (!empty($fk_product) && $fk_product > 0) {