FIX: add global PRODUCT_DISABLE_VOLUME on create
On update and view the global PRODUCT_DISABLE_VOLUME is used. But on create it does not exists.
This commit is contained in:
parent
9cc6533d11
commit
a514b97837
@ -1067,11 +1067,14 @@ else
|
|||||||
print $formproduct->select_measuring_units("surface_units","surface");
|
print $formproduct->select_measuring_units("surface_units","surface");
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
}
|
}
|
||||||
// Volume
|
if (empty($conf->global->PRODUCT_DISABLE_VOLUME))
|
||||||
print '<tr><td>'.$langs->trans("Volume").'</td><td colspan="3">';
|
{
|
||||||
print '<input name="volume" size="4" value="'.GETPOST('volume').'">';
|
// Volume
|
||||||
print $formproduct->select_measuring_units("volume_units","volume");
|
print '<tr><td>'.$langs->trans("Volume").'</td><td colspan="3">';
|
||||||
print '</td></tr>';
|
print '<input name="volume" size="4" value="'.GETPOST('volume').'">';
|
||||||
|
print $formproduct->select_measuring_units("volume_units","volume");
|
||||||
|
print '</td></tr>';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Units
|
// Units
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user