From df5d4795bfa6f75fae4f42813d83efda5a3a06af Mon Sep 17 00:00:00 2001 From: Francis Appels Date: Fri, 25 Jul 2014 22:37:23 +0200 Subject: [PATCH] Fix on bugfix#1317, clean parameters missing Clean fk_parent before updating fk_parent --- htdocs/categories/class/categorie.class.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/htdocs/categories/class/categorie.class.php b/htdocs/categories/class/categorie.class.php index 915a1410933..88db4dbc47a 100644 --- a/htdocs/categories/class/categorie.class.php +++ b/htdocs/categories/class/categorie.class.php @@ -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();