Fix: Update private note was broken
This commit is contained in:
parent
079e0fa69a
commit
fe3e466503
@ -782,7 +782,8 @@ class CommonObject
|
|||||||
}
|
}
|
||||||
|
|
||||||
$sql = 'UPDATE '.MAIN_DB_PREFIX.$this->table_element;
|
$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;
|
$sql.= " WHERE rowid =". $this->id;
|
||||||
|
|
||||||
dolibarr_syslog("CommonObject::update_note sql=".$sql, LOG_DEBUG);
|
dolibarr_syslog("CommonObject::update_note sql=".$sql, LOG_DEBUG);
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
* Copyright (C) 2004-2007 Laurent Destailleur <eldy@users.sourceforge.net>
|
* Copyright (C) 2004-2008 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* 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
|
* 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
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
*
|
|
||||||
* $Id$
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
\file htdocs/compta/facture/note.php
|
\file htdocs/compta/facture/note.php
|
||||||
\ingroup facture
|
\ingroup facture
|
||||||
\brief Fiche de notes sur une facture
|
\brief Fiche de notes sur une facture
|
||||||
\version $Revision$
|
\version $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require("./pre.inc.php");
|
require("./pre.inc.php");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user