From 253c95d9e2634920cd015c268c99077a2925a9e3 Mon Sep 17 00:00:00 2001 From: x2001corpet Date: Thu, 8 Jun 2006 08:34:39 +0000 Subject: [PATCH] bug 379 : ordre des telepaiements sur la page xnet, cacher les anciens paiements git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@307 839d8a87-29fc-0310-9880-83ba4fa771e5 --- ChangeLog | 2 +- htdocs.net/groupe/telepaiement.php | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 65f1399..9235e6e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -46,7 +46,7 @@ Bug/Wish : - #403: Cache is cleared when editing a page. -Car * Xnet : - - #383: Paiements table relook. -Car + - #379, #383: Paiements table relook. -Car - #413: When creating a new event, datas don't disappear anymore. -Car From 0.9.8 Branch : diff --git a/htdocs.net/groupe/telepaiement.php b/htdocs.net/groupe/telepaiement.php index 75a73f2..149ead2 100644 --- a/htdocs.net/groupe/telepaiement.php +++ b/htdocs.net/groupe/telepaiement.php @@ -4,7 +4,10 @@ require 'xnet.inc.php'; new_group_page('xnet/groupe/telepaiement.tpl'); -$res = $globals->xdb->query("SELECT id, text FROM {$globals->money->mpay_tprefix}paiements WHERE asso_id = {?}", $globals->asso('id')); +$res = $globals->xdb->query("SELECT id, text FROM {$globals->money->mpay_tprefix}paiements + WHERE asso_id = {?} AND NOT FIND_IN_SET(flags, 'old') + ORDER BY id DESC", + $globals->asso('id')); $tit = $res->fetchAllAssoc(); $page->assign('titres', $tit); -- 2.1.4