From: Brice Gelineau Date: Fri, 18 Nov 2011 17:14:13 +0000 (+0100) Subject: Payment takes into account the amount when it is given (Closes #1567) X-Git-Tag: xorg/1.1.5~34^2~12 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=8af607ead9a244d0e83c9312c2c8a946c696d0b6;hp=c9566e01c2add8f12a858abe0fbb0bc6b8e3c0d4;p=platal.git Payment takes into account the amount when it is given (Closes #1567) Signed-off-by: Brice Gelineau --- 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) {