Fix: Hide if supplier module is disabled
This commit is contained in:
parent
9cd90da933
commit
fe75e417ef
@ -1103,6 +1103,8 @@ else
|
|||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
// Supplier
|
// Supplier
|
||||||
|
if ($conf->fournisseur->enabled)
|
||||||
|
{
|
||||||
print '<tr>';
|
print '<tr>';
|
||||||
print '<td><span class="fieldrequired">'.$langs->trans('Supplier').'</span></td><td>';
|
print '<td><span class="fieldrequired">'.$langs->trans('Supplier').'</span></td><td>';
|
||||||
print $form->selectyesno("fournisseur",$soc->fournisseur,1);
|
print $form->selectyesno("fournisseur",$soc->fournisseur,1);
|
||||||
@ -1131,6 +1133,7 @@ else
|
|||||||
print '</td></tr></table>';
|
print '</td></tr></table>';
|
||||||
|
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
}
|
||||||
|
|
||||||
// Category
|
// Category
|
||||||
if ($soc->fournisseur)
|
if ($soc->fournisseur)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user