Merge pull request #10469 from atm-gauthier/7.0_fix_wrong_test_enabled

FIX : wrong test enabled
This commit is contained in:
Laurent Destailleur 2019-02-01 15:34:55 +01:00 committed by GitHub
commit a08a0b4c1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1725,7 +1725,7 @@ if ($action == 'create')
}
// Create an order
if (! empty($conf->commande->enabled) && $object->statut == SupplierProposal::STATUS_SIGNED) {
if (! empty($conf->fournisseur->enabled) && $object->statut == SupplierProposal::STATUS_SIGNED) {
if ($user->rights->fournisseur->commande->creer) {
print '<div class="inline-block divButAction"><a class="butAction" href="' . DOL_URL_ROOT . '/fourn/commande/card.php?action=create&amp;origin=' . $object->element . '&amp;originid=' . $object->id . '&amp;socid=' . $object->socid . '">' . $langs->trans("AddOrder") . '</a></div>';
}