2020-12-08
23:25 Wiki page "Changelog/0.9" artifact: b9c916b4d1 user: bohwaz
2015-10-10
08:19 Fixed ticket [72bfc5da9a]: Membres : la pagination ne fonctionne pas avec le filtre de catégorie plus 5 other changes artifact: c4101b2e19 user: bohwaz
08:18
Transmission catégorie en cours dans la pagination, fix [72bfc5da9a4556ded51d50971df2dbd576d87f47] check-in: 61819f034c user: bohwaz tags: trunk
2015-09-17
19:38 New ticket [72bfc5da9a] Membres : la pagination ne fonctionne pas avec le filtre de catégorie. artifact: d5046d4508 user: sylvain.philip

Ticket Hash: 72bfc5da9a4556ded51d50971df2dbd576d87f47
Title: Membres : la pagination ne fonctionne pas avec le filtre de catégorie
Status: Fixed Type: Code_Defect
Severity: Minor Priority: Immediate
Subsystem: Resolution: Fixed
Last Modified: 2015-10-10 08:19:26
Version Found In: 0.7.1
User Comments:

sylvain.philip added on 2015-09-17 17:38:31:

Voici le patch pour corriger le problème :

Index: src/www/admin/membres/index.php
==================================================================
--- src/www/admin/membres/index.php
+++ src/www/admin/membres/index.php
@@ -59,11 +59,11 @@
 	$tpl->assign('champs', $fields);
 
 	$tpl->assign('liste', $membres->listByCategory($cat_id, array_keys($fields), $page, $order, $desc));
 	$tpl->assign('total', $membres->countByCategory($cat_id));
 
-	$tpl->assign('pagination_url', Utils::getSelfUrl(true) . '?p=[ID]&o=' . $order . ($desc ? '&d' : ''));
+	$tpl->assign('pagination_url', Utils::getSelfUrl(true) . '?p=[ID]&o=' . $order . ($desc ? '&d' : ''). ($cat_id? '&cat='. (int) Utils::get('cat') : ''));
 
 	$tpl->assign('membres_cats', $membres_cats);
 	$tpl->assign('membres_cats_cachees', $membres_cats_cachees);
 	$tpl->assign('current_cat', $cat_id);
 
@@ -72,6 +72,6 @@
 
 }
 
 $tpl->display('admin/membres/index.tpl');
 
-?>
+?>

bohwaz added on 2015-10-10 06:19:26:

Corrigé dans [61819f034cc1b7b72a6d0f4d9ba9f340c44e282a] merci