diff --git a/htdocs/commande/class/commande.class.php b/htdocs/commande/class/commande.class.php index b1503f540d8..f8b10935f83 100644 --- a/htdocs/commande/class/commande.class.php +++ b/htdocs/commande/class/commande.class.php @@ -1213,7 +1213,7 @@ class Commande extends CommonOrder $this->contact_id = $object->contactid; $this->ref_client = $object->ref_client; - if (! empty($conf->global->MAIN_DISABLE_PROPAGATE_NOTES_FROM_ORIGIN)) + if (empty($conf->global->MAIN_DISABLE_PROPAGATE_NOTES_FROM_ORIGIN)) { $this->note_private = $object->note_private; $this->note_public = $object->note_public; diff --git a/htdocs/compta/facture/class/facture.class.php b/htdocs/compta/facture/class/facture.class.php index 77f3bd4450a..62dba82fc54 100644 --- a/htdocs/compta/facture/class/facture.class.php +++ b/htdocs/compta/facture/class/facture.class.php @@ -1143,7 +1143,7 @@ class Facture extends CommonInvoice $this->contact_id = $object->contactid; $this->ref_client = $object->ref_client; - if (! empty($conf->global->MAIN_DISABLE_PROPAGATE_NOTES_FROM_ORIGIN)) + if (empty($conf->global->MAIN_DISABLE_PROPAGATE_NOTES_FROM_ORIGIN)) { $this->note_private = $object->note_private; $this->note_public = $object->note_public;