Fix on bugfix#1317, clean parameters missing
Clean fk_parent before updating fk_parent
This commit is contained in:
parent
5aa4d61afe
commit
df5d4795bf
@ -335,6 +335,9 @@ class Categorie extends CommonObject
|
||||
|
||||
$error=0;
|
||||
|
||||
// Clean parameters
|
||||
$this->fk_parent = ($this->fk_parent != "" ? intval($this->fk_parent) : 0);
|
||||
|
||||
dol_syslog(get_class($this)."::remove");
|
||||
|
||||
$this->db->begin();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user