Fix measure unit id in select options
This commit is contained in:
parent
10f572b400
commit
17dd88d397
@ -337,8 +337,8 @@ class FormProduct
|
||||
$return .= '<option value="0">' . $langs->trans("Default") . '</option>';
|
||||
|
||||
foreach ($measuringUnits->records as $lines) {
|
||||
$return .= '<option value="' . $lines->code . '"';
|
||||
if ($lines->code == $default) {
|
||||
$return .= '<option value="' . $lines->id . '"';
|
||||
if ($lines->id == $default) {
|
||||
$return .= ' selected';
|
||||
}
|
||||
// $return.= '>'.$value.'</option>';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user