This commit is contained in:
Andre Cianfarani 2006-03-30 14:24:21 +00:00
parent 3e7c4d0cf8
commit fedaa74ce8

View File

@ -153,14 +153,7 @@ class Categorie
*/
function update()
{
$sql = 'delete from '.MAIN_DB_PREFIX.'categorie_association';
$sql .= ' WHERE fk_categorie_mere = "'.$this->id.'" or 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)
{