From 365d5d4588f941718ea7d36652bf0b2b8674962d Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 13 Oct 2021 01:55:24 +0200 Subject: [PATCH] Update card.php --- htdocs/fourn/commande/card.php | 1 + 1 file changed, 1 insertion(+) diff --git a/htdocs/fourn/commande/card.php b/htdocs/fourn/commande/card.php index 6a5430d1f33..32150131314 100644 --- a/htdocs/fourn/commande/card.php +++ b/htdocs/fourn/commande/card.php @@ -145,6 +145,7 @@ $permissiontoedit = $usercancreate; // Used by the include of actions_lineupdown $permissiontoadd = $usercancreate; // Used by the include of actions_addupdatedelete.inc.php // Project permission +$caneditproject = false; if (!empty($conf->projet->enabled)) { $caneditproject = empty($conf->global->SUPPLIER_ORDER_FORBID_EDIT_PROJECT) || ($object->statut == CommandeFournisseur::STATUS_DRAFT && preg_match('/^[\(]?PROV/i', $object->ref)); }