diff --git a/htdocs/commonobject.class.php b/htdocs/commonobject.class.php index 67346dfe93d..e62a1dafbf7 100644 --- a/htdocs/commonobject.class.php +++ b/htdocs/commonobject.class.php @@ -782,7 +782,8 @@ class CommonObject } $sql = 'UPDATE '.MAIN_DB_PREFIX.$this->table_element; - $sql.= " SET note_private = '".addslashes($note)."'"; + if ($this->table_element == 'fichinter') $sql.= " SET note_private = '".addslashes($note)."'"; + else $sql.= " SET note = '".addslashes($note)."'"; $sql.= " WHERE rowid =". $this->id; dolibarr_syslog("CommonObject::update_note sql=".$sql, LOG_DEBUG); diff --git a/htdocs/compta/facture/note.php b/htdocs/compta/facture/note.php index 1aec097f18a..c25b99ffa2b 100644 --- a/htdocs/compta/facture/note.php +++ b/htdocs/compta/facture/note.php @@ -1,6 +1,6 @@ - * Copyright (C) 2004-2007 Laurent Destailleur + * Copyright (C) 2004-2008 Laurent Destailleur * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,15 +15,13 @@ * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - * - * $Id$ */ /** \file htdocs/compta/facture/note.php \ingroup facture \brief Fiche de notes sur une facture - \version $Revision$ + \version $Id$ */ require("./pre.inc.php");