Fix duplicate log
This commit is contained in:
parent
dcf3c00023
commit
9d0cd148a8
@ -222,6 +222,8 @@ class Categorie extends CommonObject
|
|||||||
|
|
||||||
$error=0;
|
$error=0;
|
||||||
|
|
||||||
|
dol_syslog(get_class($this).'::create', LOG_DEBUG);
|
||||||
|
|
||||||
// Clean parameters
|
// Clean parameters
|
||||||
$this->label = trim($this->label);
|
$this->label = trim($this->label);
|
||||||
$this->description = trim($this->description);
|
$this->description = trim($this->description);
|
||||||
@ -239,7 +241,6 @@ class Categorie extends CommonObject
|
|||||||
|
|
||||||
$this->db->begin();
|
$this->db->begin();
|
||||||
|
|
||||||
dol_syslog(get_class($this).'::create', LOG_DEBUG);
|
|
||||||
$sql = "INSERT INTO ".MAIN_DB_PREFIX."categorie (";
|
$sql = "INSERT INTO ".MAIN_DB_PREFIX."categorie (";
|
||||||
$sql.= "fk_parent,";
|
$sql.= "fk_parent,";
|
||||||
$sql.= " label,";
|
$sql.= " label,";
|
||||||
@ -266,7 +267,6 @@ class Categorie extends CommonObject
|
|||||||
$sql.= $conf->entity;
|
$sql.= $conf->entity;
|
||||||
$sql.= ")";
|
$sql.= ")";
|
||||||
|
|
||||||
dol_syslog(get_class($this).'::create', LOG_DEBUG);
|
|
||||||
$res = $this->db->query($sql);
|
$res = $this->db->query($sql);
|
||||||
if ($res)
|
if ($res)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user