noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 40/323: Category of card : cannot be removed


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 40/323: Category of card : cannot be removed due to FK in attr_min
Date: Wed, 14 Mar 2018 17:38:14 -0400 (EDT)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 85b2339fb7628056adbc33aaf8c885482906b1d2
Author: Dany De Bontridder <address@hidden>
Date:   Wed Jan 10 09:16:52 2018 +0100

    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 afaaf49..fbd9c05 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();
     }
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]