|
@@ -791,7 +791,7 @@ class FormProduct
|
|
|
*/
|
|
|
public function selectLotDataList($htmlname = 'batch_id', $empty = 0, $fk_product = 0, $fk_entrepot = 0, $objectLines = array())
|
|
|
{
|
|
|
- global $langs, $hookmanager;
|
|
|
+ global $conf, $langs, $hookmanager;
|
|
|
|
|
|
dol_syslog(get_class($this)."::selectLotDataList $htmlname, $empty, $fk_product, $fk_entrepot", LOG_DEBUG);
|
|
|
|
|
@@ -841,7 +841,8 @@ class FormProduct
|
|
|
if (empty($fk_entrepot) || $fk_entrepot == $arraytypes['entrepot_id']) {
|
|
|
$label = $arraytypes['entrepot_label'] . ' - ';
|
|
|
$label .= $arraytypes['batch'];
|
|
|
- $out .= '<option data-warehouse="'.dol_escape_htmltag($label).'" value="' . $arraytypes['batch'] . '">' . $arraytypes['batch'] . ' (' . $langs->trans('Stock Total') . ': ' . $arraytypes['qty'] . ')</option>';
|
|
|
+ // Notice: Chrome show 1 line with value and 1 for label. Firefox show only 1 line with label
|
|
|
+ $out .= '<option data-warehouse="'.dol_escape_htmltag($label).'" value="' . $arraytypes['batch'] . '">' . ($conf->browser->name === 'chrome' ? '' : $arraytypes['batch']) . ' (' . $langs->trans('Stock Total') . ': ' . $arraytypes['qty'] . ')</option>';
|
|
|
}
|
|
|
}
|
|
|
}
|