From 8af607ead9a244d0e83c9312c2c8a946c696d0b6 Mon Sep 17 00:00:00 2001 From: Brice Gelineau Date: Fri, 18 Nov 2011 18:14:13 +0100 Subject: [PATCH 1/1] Payment takes into account the amount when it is given (Closes #1567) Signed-off-by: Brice Gelineau --- modules/payment.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/payment.php b/modules/payment.php index c338852..e183dc8 100644 --- a/modules/payment.php +++ b/modules/payment.php @@ -142,6 +142,9 @@ class PaymentModule extends PLModule $page->kill('La transaction selectionnée est périmée.'); } + if (Env::has('montant')) { + $pay->amount_def = Env::v('montant'); + } $val = (Post::v('amount') != 0) ? Post::v('amount') : $pay->amount_def; if (($error = $pay->check($val)) !== true) { -- 2.1.4