Fixes session user's payment display in xnet admin page (Closes #1499).
authorStéphane Jacob <sj@m4x.org>
Tue, 24 May 2011 12:13:28 +0000 (14:13 +0200)
committerStéphane Jacob <sj@m4x.org>
Tue, 24 May 2011 12:13:28 +0000 (14:13 +0200)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
ChangeLog
modules/payment.php

index fb1a927..87328ee 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,7 @@ Bug/Wish:
 
     * Paiement:
         - #192: Displays users donations                                   -JAC
+        - #1499: Fixes session user's payment display in xnet admin page   -JAC
 
     * Search:
         - #1285: Autocompletes on internal words in university search      -JAC
index 40d5d12..0fc1436 100644 (file)
@@ -499,7 +499,7 @@ class PaymentModule extends PLModule
             }
             $res = XDB::query('SELECT  amount
                                  FROM  payment_transactions
-                                WHERE  id = {?} AND uid = {?}', $pid, S::v('uid'));
+                                WHERE  ref = {?} AND uid = {?}', $pid, S::v('uid'));
             $montants = $res->fetchColumn();
 
             foreach ($montants as $m) {