@@ -52,7 +52,7 @@ class Categorie extends CommonObject
constTYPE_ACCOUNT=5;// for bank account TODO Replace this value with 'account'
constTYPE_PROJECT=6;
public$picto='category';
/**
* @var array ID mapping from type string
...
...
@@ -556,7 +556,7 @@ class Categorie extends CommonObject
$error++;
}
}
if(!$error)
{
$sql="DELETE FROM ".MAIN_DB_PREFIX."categorie_lang";
...
...
@@ -1163,11 +1163,11 @@ class Categorie extends CommonObject
*/
if($obj[0]>0&&$obj[0]!=$this->id)
{
dol_syslog(get_class($this)."::already_exists category with name=".$this->label." exist rowid=".$obj[0]." current_id=".$this->id,LOG_DEBUG);
dol_syslog(get_class($this)."::already_exists category with name=".$this->label." and parent ".$this->fk_parent." exists: rowid=".$obj[0]." current_id=".$this->id,LOG_DEBUG);
return1;
}
}
dol_syslog(get_class($this)."::already_exists no category with same name=".$this->label." rowid=".$obj[0]." current_id=".$this->id,LOG_DEBUG);
dol_syslog(get_class($this)."::already_exists no category with same name=".$this->label." and same parent ".$this->fk_parent.": rowid=".$obj[0]." current_id=".$this->id,LOG_DEBUG);
return0;
}
else
...
...
@@ -1737,8 +1737,8 @@ class Categorie extends CommonObject