diff --git a/htdocs/commande/fiche.php b/htdocs/commande/fiche.php index e64668591be..9cc8da95d51 100644 --- a/htdocs/commande/fiche.php +++ b/htdocs/commande/fiche.php @@ -541,7 +541,7 @@ else if ($action == 'setnote_public' && $user->rights->commande->creer) else if ($action == 'setnote_private' && $user->rights->commande->creer) { - $result=$object->update_note_rivate(dol_html_entity_decode(GETPOST('note_private'), ENT_QUOTES)); + $result=$object->update_note(dol_html_entity_decode(GETPOST('note_private'), ENT_QUOTES), '_private'); if ($result < 0) dol_print_error($db,$object->error); } diff --git a/htdocs/contrat/note.php b/htdocs/contrat/note.php index ee66e4583f7..c8edf493f63 100644 --- a/htdocs/contrat/note.php +++ b/htdocs/contrat/note.php @@ -50,7 +50,7 @@ $object->fetch($id,$ref); if ($action == 'setnote_public' && $user->rights->contrat->creer) { - $result=$object->update_note(dol_html_entity_decode(dol_htmlcleanlastbr(GETPOST('note_public')), ENT_QUOTES),'_pubic'); + $result=$object->update_note(dol_html_entity_decode(dol_htmlcleanlastbr(GETPOST('note_public')), ENT_QUOTES),'_public'); if ($result < 0) dol_print_error($db,$object->error); } diff --git a/htdocs/fichinter/fiche.php b/htdocs/fichinter/fiche.php index 70fed335c93..0684c4695ce 100644 --- a/htdocs/fichinter/fiche.php +++ b/htdocs/fichinter/fiche.php @@ -386,7 +386,7 @@ else if ($action == 'setnote_public' && $user->rights->ficheinter->creer) else if ($action == 'setnote_private' && $user->rights->ficheinter->creer) { $object->fetch($id); - $result=$object->update_note(dol_html_entity_decode(GETPOST('note_private'), ENT_QUOTES)); + $result=$object->update_note(dol_html_entity_decode(GETPOST('note_private'), ENT_QUOTES), '_private'); if ($result < 0) dol_print_error($db,$object->error); } diff --git a/htdocs/fourn/commande/note.php b/htdocs/fourn/commande/note.php index 7d4fa0cd496..9e629414b63 100644 --- a/htdocs/fourn/commande/note.php +++ b/htdocs/fourn/commande/note.php @@ -54,9 +54,9 @@ if ($action == 'setnote_public' && $user->rights->fournisseur->commande->creer) $result=$object->update_note(dol_html_entity_decode(GETPOST('note_public'), ENT_QUOTES),'_public'); if ($result < 0) dol_print_error($db,$object->error); } -elseif ($action == 'setnote' && $user->rights->fournisseur->commande->creer) +elseif ($action == 'setnote_private' && $user->rights->fournisseur->commande->creer) { - $result=$object->update_note(dol_html_entity_decode(GETPOST('note'), ENT_QUOTES)); + $result=$object->update_note(dol_html_entity_decode(GETPOST('note_private'), ENT_QUOTES), '_private'); if ($result < 0) dol_print_error($db,$object->error); } diff --git a/htdocs/projet/class/project.class.php b/htdocs/projet/class/project.class.php index f5af9518de1..321936ad6a9 100644 --- a/htdocs/projet/class/project.class.php +++ b/htdocs/projet/class/project.class.php @@ -1048,7 +1048,7 @@ class Project extends CommonObject } $this->db->begin(); - $res=$clone_project->update_note(dol_html_entity_decode($clone_project->note_private, ENT_QUOTES)); + $res=$clone_project->update_note(dol_html_entity_decode($clone_project->note_private, ENT_QUOTES), '_private'); if ($res < 0) { $this->error.=$clone_project->error; diff --git a/htdocs/projet/class/task.class.php b/htdocs/projet/class/task.class.php index 0adc21eb6cc..ac29870106b 100644 --- a/htdocs/projet/class/task.class.php +++ b/htdocs/projet/class/task.class.php @@ -1064,7 +1064,7 @@ class Task extends CommonObject } $this->db->begin(); - $res=$clone_task->update_note(dol_html_entity_decode($clone_task->note_private, ENT_QUOTES)); + $res=$clone_task->update_note(dol_html_entity_decode($clone_task->note_private, ENT_QUOTES), '_private'); if ($res < 0) { $this->error.=$clone_task->error; diff --git a/htdocs/projet/note.php b/htdocs/projet/note.php index 26eafbc16d2..dddab2a5e79 100644 --- a/htdocs/projet/note.php +++ b/htdocs/projet/note.php @@ -63,7 +63,7 @@ if ($action == 'setnote_public' && $user->rights->projet->creer) if ($action == 'setnote_private' && $user->rights->projet->creer) { $object->fetch($id); - $result=$object->update_note(dol_html_entity_decode(GETPOST('note_private'), ENT_QUOTES)); + $result=$object->update_note(dol_html_entity_decode(GETPOST('note_private'), ENT_QUOTES), '_private'); if ($result < 0) dol_print_error($db,$object->error); } diff --git a/htdocs/projet/tasks/note.php b/htdocs/projet/tasks/note.php index 9931bde0510..1b6bebeb9d5 100644 --- a/htdocs/projet/tasks/note.php +++ b/htdocs/projet/tasks/note.php @@ -93,7 +93,7 @@ if ($action == 'setnote_public' && ! empty($permission)) else if ($action == 'setnote_private' && ! empty($permission)) { - $result=$object->update_note(dol_html_entity_decode(GETPOST('note_private'), ENT_QUOTES)); + $result=$object->update_note(dol_html_entity_decode(GETPOST('note_private'), ENT_QUOTES), '_private'); if ($result < 0) dol_print_error($db,$object->error); } diff --git a/htdocs/user/note.php b/htdocs/user/note.php index 421d30cbc7a..5ccd23f3042 100644 --- a/htdocs/user/note.php +++ b/htdocs/user/note.php @@ -58,7 +58,7 @@ if ($action == 'update' && $user->rights->user->user->creer && ! $_POST["cancel" { $db->begin(); - $res=$fuser->update_note($_POST["note"],$user); + $res=$fuser->update_note(dol_html_entity_decode(GETPOST('note'), ENT_QUOTES)); if ($res < 0) { $mesg='
'.$adh->error.'
';