diff --git a/htdocs/compta/facture/fiche-rec.php b/htdocs/compta/facture/fiche-rec.php
index 2e595d45daf..e296346bd36 100644
--- a/htdocs/compta/facture/fiche-rec.php
+++ b/htdocs/compta/facture/fiche-rec.php
@@ -86,7 +86,6 @@ $permissiontoedit = $user->rights->facture->creer; // Used by the include of act
*/
// Set note
-$permissionnote=$user->rights->facture->creer; // Used by the include of actions_setnotes.inc.php
include DOL_DOCUMENT_ROOT.'/core/actions_setnotes.inc.php'; // Must be include, not include_once
include DOL_DOCUMENT_ROOT.'/core/actions_lineupdown.inc.php'; // Must be include, not include_once
@@ -129,7 +128,8 @@ if ($action == 'add')
if (! $error)
{
$object->titre = GETPOST('titre', 'alpha');
- $object->note_private = GETPOST('note_private');
+ $object->note_private = GETPOST('note_private');
+ $object->note_public = GETPOST('note_public');
$object->usenewprice = GETPOST('usenewprice');
$object->frequency = $frequency;
@@ -625,20 +625,23 @@ if ($action == 'create')
// Third party
print '