From e7d5bad71fb73e94cdfe279048fc7881d10cc5c6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Jacob?= Date: Tue, 24 May 2011 14:13:28 +0200 Subject: [PATCH] Fixes session user's payment display in xnet admin page (Closes #1499). MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Jacob --- ChangeLog | 1 + modules/payment.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index fb1a927..87328ee 100644 --- 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 diff --git a/modules/payment.php b/modules/payment.php index 40d5d12..0fc1436 100644 --- a/modules/payment.php +++ b/modules/payment.php @@ -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) { -- 2.1.4