From 3ff6f6a04a8dd186375b8583e8bf96d1b534bc66 Mon Sep 17 00:00:00 2001 From: Francis Appels Date: Mon, 26 Oct 2020 18:13:25 +0100 Subject: [PATCH] Move phpcs enable to correct location @frederic34 --- htdocs/comm/propal/class/propal.class.php | 2 +- htdocs/commande/class/commande.class.php | 2 +- htdocs/expedition/class/expedition.class.php | 2 +- htdocs/fourn/class/fournisseur.commande.class.php | 2 +- htdocs/supplier_proposal/class/supplier_proposal.class.php | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/htdocs/comm/propal/class/propal.class.php b/htdocs/comm/propal/class/propal.class.php index 5d31463125c..78804dacec2 100644 --- a/htdocs/comm/propal/class/propal.class.php +++ b/htdocs/comm/propal/class/propal.class.php @@ -2072,6 +2072,7 @@ class Propal extends CommonObject */ public function set_date_livraison($user, $delivery_date, $notrigger = 0) { + // phpcs:enable return $this->setDeliveryDate($user, $delivery_date, $notrigger); } @@ -2085,7 +2086,6 @@ class Propal extends CommonObject */ public function setDeliveryDate($user, $delivery_date, $notrigger = 0) { - // phpcs:enable if (!empty($user->rights->propal->creer)) { $error = 0; diff --git a/htdocs/commande/class/commande.class.php b/htdocs/commande/class/commande.class.php index 9019e3fb3ae..12652e0868e 100644 --- a/htdocs/commande/class/commande.class.php +++ b/htdocs/commande/class/commande.class.php @@ -2559,6 +2559,7 @@ class Commande extends CommonOrder */ public function set_date_livraison($user, $delivery_date, $notrigger = 0) { + // phpcs:enable return $this->setDeliveryDate($user, $delivery_date, $notrigger); } @@ -2572,7 +2573,6 @@ class Commande extends CommonOrder */ public function setDeliveryDate($user, $delivery_date, $notrigger = 0) { - // phpcs:enable if ($user->rights->commande->creer) { $error = 0; diff --git a/htdocs/expedition/class/expedition.class.php b/htdocs/expedition/class/expedition.class.php index b55243dd08c..d288e7172df 100644 --- a/htdocs/expedition/class/expedition.class.php +++ b/htdocs/expedition/class/expedition.class.php @@ -1968,6 +1968,7 @@ class Expedition extends CommonObject */ public function set_date_livraison($user, $delivery_date) { + // phpcs:enable return $this->setDeliveryDate($user, $delivery_date); } @@ -1980,7 +1981,6 @@ class Expedition extends CommonObject */ public function setDeliveryDate($user, $delivery_date) { - // phpcs:enable if ($user->rights->expedition->creer) { $sql = "UPDATE ".MAIN_DB_PREFIX."expedition"; diff --git a/htdocs/fourn/class/fournisseur.commande.class.php b/htdocs/fourn/class/fournisseur.commande.class.php index 488ccb276cf..25aab5b7492 100644 --- a/htdocs/fourn/class/fournisseur.commande.class.php +++ b/htdocs/fourn/class/fournisseur.commande.class.php @@ -2269,6 +2269,7 @@ class CommandeFournisseur extends CommonOrder */ public function set_date_livraison($user, $delivery_date, $notrigger = 0) { + // phpcs:enable return $this->setDeliveryDate($user, $delivery_date, $notrigger); } @@ -2282,7 +2283,6 @@ class CommandeFournisseur extends CommonOrder */ public function setDeliveryDate($user, $delivery_date, $notrigger = 0) { - // phpcs:enable if ($user->rights->fournisseur->commande->creer) { $error = 0; diff --git a/htdocs/supplier_proposal/class/supplier_proposal.class.php b/htdocs/supplier_proposal/class/supplier_proposal.class.php index f27a3df4438..44f8245a496 100644 --- a/htdocs/supplier_proposal/class/supplier_proposal.class.php +++ b/htdocs/supplier_proposal/class/supplier_proposal.class.php @@ -1517,6 +1517,7 @@ class SupplierProposal extends CommonObject */ public function set_date_livraison($user, $delivery_date) { + // phpcs:enable return $this->setDeliveryDate($user, $delivery_date); } @@ -1529,7 +1530,6 @@ class SupplierProposal extends CommonObject */ public function setDeliveryDate($user, $delivery_date) { - // phpcs:enable if (!empty($user->rights->supplier_proposal->creer)) { $sql = "UPDATE ".MAIN_DB_PREFIX."supplier_proposal ";