noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 03/19: Fix Bug Cannot create new category of


From: dwm
Subject: [Noalyss-commit] [noalyss] 03/19: Fix Bug Cannot create new category of cards
Date: Wed, 25 Sep 2024 06:45:02 -0400 (EDT)

sparkyx pushed a commit to branch unstable
in repository noalyss.

commit 5ad33a358ce7e3dda0d4a192dfac6ee17d0f5383
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Sat Sep 21 13:20:02 2024 +0200

    Fix Bug Cannot create new category of cards
---
 include/class/template_card_category.class.php | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/class/template_card_category.class.php 
b/include/class/template_card_category.class.php
index 7afa86637..643cd8acc 100644
--- a/include/class/template_card_category.class.php
+++ b/include/class/template_card_category.class.php
@@ -209,9 +209,9 @@ EOF;
     {
         $cn=Dossier::connect();
         $frd_id=$this->get_table()->getp("frd_id");
-        $cn->exec_sql("insert into attr_min (frd_id,ad_id,ad_default_order) 
values ($1,$2)",
-                [$frd_id, ATTR_DEF_NAME],1);
-        $cn->exec_sql("insert into attr_min (frd_id,ad_id) values ($1,$2)",
+        $cn->exec_sql("insert into attr_min (frd_id,ad_id,ad_default_order) 
values ($1,$2,$3)",
+                [$frd_id, ATTR_DEF_NAME,1]);
+        $cn->exec_sql("insert into attr_min (frd_id,ad_id,ad_default_order) 
values ($1,$2,$3)",
                 [$frd_id, ATTR_DEF_QUICKCODE,10000]);
     }
 



reply via email to

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