Fix custom code must be visible only for products

This commit is contained in:
Laurent Destailleur 2016-07-11 11:43:59 +02:00
parent 329bdfc9fd
commit b72123e7ec

View File

@ -1008,7 +1008,7 @@ else
}
// Custom code
if (empty($conf->global->PRODUCT_DISABLE_CUSTOM_INFO))
if (empty($conf->global->PRODUCT_DISABLE_CUSTOM_INFO) && empty($type))
{
print '<tr><td>'.$langs->trans("CustomCode").'</td><td><input name="customcode" size="10" value="'.GETPOST('customcode').'"></td>';
// Origin country