Merge pull request #10821 from OPEN-DSI/fix-select-measuring-units
Fix measure unit id in select options
This commit is contained in:
commit
3c40d5d30c
@ -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