diff --git a/htdocs/adherents/canvas/default/tpl/adherentcard_view.tpl.php b/htdocs/adherents/canvas/default/tpl/adherentcard_view.tpl.php index 58ac61c13f2..acd1a0d701b 100644 --- a/htdocs/adherents/canvas/default/tpl/adherentcard_view.tpl.php +++ b/htdocs/adherents/canvas/default/tpl/adherentcard_view.tpl.php @@ -115,7 +115,7 @@ dol_htmloutput_errors($this->control->tpl['error'],$this->control->tpl['errors'] control->tpl['showend']; ?> -societe_id) { ?> +societe_id)) { ?>
rights->adherent->creer) { ?> diff --git a/htdocs/commande/fiche.php b/htdocs/commande/fiche.php index 1a209234612..45a02932654 100644 --- a/htdocs/commande/fiche.php +++ b/htdocs/commande/fiche.php @@ -1487,7 +1487,7 @@ if ($action == 'create' && $user->rights->commande->creer) { print ''; // Note privee - if (! $user->societe_id) { + if (empty($user->societe_id)) { print ''; print '' . $langs->trans('NotePrivate') . ''; print ''; diff --git a/htdocs/commande/orderstoinvoice.php b/htdocs/commande/orderstoinvoice.php index aa2883ccb96..fa92daa3117 100644 --- a/htdocs/commande/orderstoinvoice.php +++ b/htdocs/commande/orderstoinvoice.php @@ -468,7 +468,7 @@ if ($action == 'create' && empty($mesgs)) print ''; // Private note - if (! $user->societe_id) + if (empty($user->societe_id)) { print ''; print ''.$langs->trans('NotePrivate').''; diff --git a/htdocs/compta/deplacement/fiche.php b/htdocs/compta/deplacement/fiche.php index 6d5f08873e3..bcb3ab9fbd7 100644 --- a/htdocs/compta/deplacement/fiche.php +++ b/htdocs/compta/deplacement/fiche.php @@ -301,7 +301,7 @@ if ($action == 'create') print ''; // Private note - if (! $user->societe_id) + if (empty($user->societe_id)) { print ''; print ''.$langs->trans('NotePrivate').''; @@ -397,7 +397,7 @@ else if ($id) print ""; // Private note - if (! $user->societe_id) + if (empty($user->societe_id)) { print ''.$langs->trans("NotePrivate").''; print ''; diff --git a/htdocs/contact/canvas/default/tpl/contactcard_view.tpl.php b/htdocs/contact/canvas/default/tpl/contactcard_view.tpl.php index d7556f09f9f..623fad27e77 100644 --- a/htdocs/contact/canvas/default/tpl/contactcard_view.tpl.php +++ b/htdocs/contact/canvas/default/tpl/contactcard_view.tpl.php @@ -134,7 +134,7 @@ dol_htmloutput_errors($this->control->tpl['error'],$this->control->tpl['errors'] control->tpl['showend']; ?> -societe_id) { ?> +societe_id)) { ?>
rights->societe->contact->creer) { ?> diff --git a/htdocs/contrat/fiche.php b/htdocs/contrat/fiche.php index 3005f633645..4f59e4be4c3 100644 --- a/htdocs/contrat/fiche.php +++ b/htdocs/contrat/fiche.php @@ -882,7 +882,7 @@ if ($action == 'create') print $doleditor->Create(1); - if (! $user->societe_id) + if (empty($user->societe_id)) { print ''.$langs->trans("NotePrivate").''; $doleditor=new DolEditor('note_private', $note_private, '', '100', 'dolibarr_notes', 'In', 1, true, true, ROWS_3, 70); diff --git a/htdocs/core/tpl/notes.tpl.php b/htdocs/core/tpl/notes.tpl.php index 4975f3b0665..0cce9a3e3b4 100644 --- a/htdocs/core/tpl/notes.tpl.php +++ b/htdocs/core/tpl/notes.tpl.php @@ -69,7 +69,7 @@ else $typeofdata='textarea:12:100';
>editfieldkey("NotePublic", $note_public, $value_public, $object, $permission, $typeofdata, $moreparam); ?>
editfieldval("NotePublic", $note_public, $value_public, $object, $permission, $typeofdata, '', null, null, $moreparam); ?>
-societe_id) { ?> +societe_id)) { ?>
>editfieldkey("NotePrivate", $note_private, $value_private, $object, $permission, $typeofdata, $moreparam); ?>
editfieldval("NotePrivate", $note_private, $value_private, $object, $permission, $typeofdata, '', null, null, $moreparam); ?>