noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 09/12: Card : attribute 54 is now a column fo


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 09/12: Card : attribute 54 is now a column for each card
Date: Fri, 15 Jan 2021 09:40:07 -0500 (EST)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 2e66a8790d907cb645d83fb7dad9149f38d59fd0
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Tue Jan 12 12:12:35 2021 +0100

    Card : attribute 54 is now a column for each card
---
 include/ajax/ajax_card.php            | 2 +-
 include/class/card_multiple.class.php | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/ajax/ajax_card.php b/include/ajax/ajax_card.php
index 5c7cdac..3c0e86d 100644
--- a/include/ajax/ajax_card.php
+++ b/include/ajax/ajax_card.php
@@ -474,7 +474,7 @@ case 'fs':
      * if inactive == 0 , then only active card
      */
     if ( $inactive == 0 ) {
-        $sql.=" and f_id in (select f_id from fiche_detail where ad_id=54 and 
ad_value='1') ";
+        $sql.=" and f_enable='1' ";
     }
     
      /* We limit the search to MAX_SEARCH_CARD records */
diff --git a/include/class/card_multiple.class.php 
b/include/class/card_multiple.class.php
index 13ca09f..06c665b 100644
--- a/include/class/card_multiple.class.php
+++ b/include/class/card_multiple.class.php
@@ -102,7 +102,7 @@ class Card_Multiple
      */
     private function filter_enable_card()
     {
-        $filter_enable_card="  f_id in (select f_id from fiche_detail where 
ad_value = '1' and ad_id=54) ";
+        $filter_enable_card="  f_enable='1' ";
         return $filter_enable_card;
     }
     /**



reply via email to

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