forked from Wavyzz/dolibarr
Debug
This commit is contained in:
@@ -54,7 +54,7 @@ if ($action == 'update' && $user->rights->adherent->creer && ! $_POST["cancel"])
|
|||||||
{
|
{
|
||||||
$db->begin();
|
$db->begin();
|
||||||
|
|
||||||
$res=$object->update_note(dol_html_entity_decode(GETPOST('note_private'), ENT_QUOTES));
|
$res=$object->update_note(dol_html_entity_decode(GETPOST('note_private'), ENT_QUOTES), '_private');
|
||||||
if ($res < 0)
|
if ($res < 0)
|
||||||
{
|
{
|
||||||
setEventMessage($object->error, 'errors');
|
setEventMessage($object->error, 'errors');
|
||||||
|
|||||||
@@ -1611,7 +1611,7 @@ abstract class CommonObject
|
|||||||
}
|
}
|
||||||
if (! in_array($suffix,array('','_public','_private')))
|
if (! in_array($suffix,array('','_public','_private')))
|
||||||
{
|
{
|
||||||
dol_syslog(get_class($this)."::upate_note Parameter suffix must be empty, '_private' or '_public'", LOG_ERR);
|
dol_syslog(get_class($this)."::update_note Parameter suffix must be empty, '_private' or '_public'", LOG_ERR);
|
||||||
return -2;
|
return -2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user