Fix on bugfix#1317, clean parameters missing

Clean fk_parent before updating fk_parent
This commit is contained in:
Francis Appels 2014-07-25 22:37:23 +02:00
parent 5aa4d61afe
commit df5d4795bf

View File

@ -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();