bug 379 : ordre des telepaiements sur la page xnet, cacher les anciens paiements
authorx2001corpet <x2001corpet@839d8a87-29fc-0310-9880-83ba4fa771e5>
Thu, 8 Jun 2006 08:34:39 +0000 (08:34 +0000)
committerx2001corpet <x2001corpet@839d8a87-29fc-0310-9880-83ba4fa771e5>
Thu, 8 Jun 2006 08:34:39 +0000 (08:34 +0000)
git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@307 839d8a87-29fc-0310-9880-83ba4fa771e5

ChangeLog
htdocs.net/groupe/telepaiement.php

index 65f1399..9235e6e 100644 (file)
--- 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 :
index 75a73f2..149ead2 100644 (file)
@@ -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);