Merge pull request #9367 from joseplluis/patch-4
FIX support of option PRODUCT_DISABLE_VOLUME
This commit is contained in:
commit
b5ed4de6a6
@ -1067,12 +1067,15 @@ else
|
|||||||
print $formproduct->select_measuring_units("surface_units","surface");
|
print $formproduct->select_measuring_units("surface_units","surface");
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
}
|
}
|
||||||
|
if (empty($conf->global->PRODUCT_DISABLE_VOLUME))
|
||||||
|
{
|
||||||
// Volume
|
// Volume
|
||||||
print '<tr><td>'.$langs->trans("Volume").'</td><td colspan="3">';
|
print '<tr><td>'.$langs->trans("Volume").'</td><td colspan="3">';
|
||||||
print '<input name="volume" size="4" value="'.GETPOST('volume').'">';
|
print '<input name="volume" size="4" value="'.GETPOST('volume').'">';
|
||||||
print $formproduct->select_measuring_units("volume_units","volume");
|
print $formproduct->select_measuring_units("volume_units","volume");
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Units
|
// Units
|
||||||
if($conf->global->PRODUCT_USE_UNITS)
|
if($conf->global->PRODUCT_USE_UNITS)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user