From 01d8f1786ed1f1e18f917d8514b34a18f18f5936 Mon Sep 17 00:00:00 2001 From: sparkyx Date: Mon, 27 Apr 2026 09:56:39 +0200 Subject: [PATCH] CARD: show only count of available cards in the SELECT --- include/fiche.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fiche.inc.php b/include/fiche.inc.php index 111d37c6f..086204154 100644 --- a/include/fiche.inc.php +++ b/include/fiche.inc.php @@ -35,7 +35,7 @@ global $g_user, $g_failed; */ /* var categorie ISelect select card category */ $categorie = new ISelect('cat'); -$categorie->value = $cn->make_array("select fd_id,fd_label||' ('||(select count(*) from fiche where fiche.fd_id=fiche_def.fd_id)::text||')' from fiche_def order by fd_label"); +$categorie->value = $cn->make_array("select fd_id,fd_label||' ('||(select count(*) from fiche where fiche.fd_id=fiche_def.fd_id and f_enable='1')::text||')' from fiche_def order by fd_label"); $categorie->selected = $http->get('cat','number',0); // var $str_categorie string