2
0
forked from Wavyzz/dolibarr

Fixing style errors.

This commit is contained in:
stickler-ci
2020-05-03 15:21:00 +00:00
parent f42492764d
commit 080db7629f

View File

@@ -253,12 +253,12 @@ class FormProduct
$comboenhancement = ajax_combobox($htmlname, $events);
$out .= $comboenhancement;
}
if ($htmlname != 'search_warehouse'){
if (empty($selected) && !empty($conf->global->MAIN_DEFAULT_WAREHOUSE)) $selected = $conf->global->MAIN_DEFAULT_WAREHOUSE;
if (empty($selected) && !empty($conf->global->MAIN_DEFAULT_WAREHOUSE_USER)) $selected = $user->fk_warehouse;
}
$out .= '<select class="flat'.($morecss ? ' '.$morecss : '').'"'.($disabled ? ' disabled' : '').' id="'.$htmlname.'" name="'.($htmlname.($disabled ? '_disabled' : '')).'">';
if ($empty) $out .= '<option value="-1">'.($empty_label ? $empty_label : '&nbsp;').'</option>';
foreach ($this->cache_warehouses as $id => $arraytypes)