Skip to content

Commit

Permalink
FIX : change product type must be allowed if we activate hidden conf
Browse files Browse the repository at this point in the history
  • Loading branch information
atm-gauthier committed Sep 19, 2019
1 parent 7aac67f commit d40534e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion htdocs/product/card.php
Expand Up @@ -1597,7 +1597,9 @@
{
// TODO change for compatibility with edit in place
$typeformat='select;0:'.$langs->trans("Product").',1:'.$langs->trans("Service");
print '<tr><td class="titlefield">'.$form->editfieldkey("Type", 'fk_product_type', $object->type, $object, $usercancreate, $typeformat).'</td><td colspan="2">';
print '<tr><td class="titlefield">';
print (!empty($conf->global->MAIN_ALLOW_CHANGE_PRODUCT_TYPE)) ? $form->editfieldkey("Type", 'fk_product_type', $object->type, $object, $usercancreate, $typeformat) : $langs->trans('Type');
print '</td><td colspan="2">';
print $form->editfieldval("Type", 'fk_product_type', $object->type, $object, $usercancreate, $typeformat);
print '</td></tr>';
}
Expand Down

0 comments on commit d40534e

Please sign in to comment.