From 7edf4b692877e85ceaa621b10c485a3a72ffc5e3 Mon Sep 17 00:00:00 2001 From: Andre Cianfarani Date: Thu, 30 Mar 2006 14:40:40 +0000 Subject: [PATCH] debug --- htdocs/categories/categorie.class.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/htdocs/categories/categorie.class.php b/htdocs/categories/categorie.class.php index b14fdf65865..103d0c943d7 100644 --- a/htdocs/categories/categorie.class.php +++ b/htdocs/categories/categorie.class.php @@ -153,6 +153,16 @@ class Categorie */ function update() { + + $sql = 'delete from '.MAIN_DB_PREFIX.'categorie_association'; + $sql .= ' WHERE fk_categorie_fille = "'.$this->id.'"'; + + if (! $this->db->query($sql)) + { + dolibarr_print_error($this->db); + return -1; + } + if($this->id_mere !="" && $this->id_mere!=$this->id) {