mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
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:
parent
5e13ea5556
commit
f869034c8c
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user