From 85b2339fb7628056adbc33aaf8c885482906b1d2 Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Wed, 10 Jan 2018 09:16:52 +0100 Subject: [PATCH] Category of card : cannot be removed due to FK in attr_min --- include/class/template_card_category.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/include/class/template_card_category.class.php b/include/class/template_card_category.class.php index afaaf493f..fbd9c05c0 100644 --- a/include/class/template_card_category.class.php +++ b/include/class/template_card_category.class.php @@ -56,6 +56,7 @@ class Template_Card_Category extends Manage_Table_SQL { throw new Exception(_("Effacement impossible : catégorie utilisée")); } + $cn->exec_sql("delete from attr_min where frd_id=$1",[$this->table->frd_id]); $this->table->delete(); }