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>';
|
$return .= '<option value="0">' . $langs->trans("Default") . '</option>';
|
||||||
|
|
||||||
foreach ($measuringUnits->records as $lines) {
|
foreach ($measuringUnits->records as $lines) {
|
||||||
$return .= '<option value="' . $lines->code . '"';
|
$return .= '<option value="' . $lines->id . '"';
|
||||||
if ($lines->code == $default) {
|
if ($lines->id == $default) {
|
||||||
$return .= ' selected';
|
$return .= ' selected';
|
||||||
}
|
}
|
||||||
// $return.= '>'.$value.'</option>';
|
// $return.= '>'.$value.'</option>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user