Commit d8d5d412 authored by nono's avatar nono 💻
Browse files

Merge branch '113-dons-negatifs' into 'preprod'

Resolve "Dons négatifs"

Closes #113

See merge request !135
parents 8e937329 7f785f1d
......@@ -86,6 +86,12 @@ class Campaign extends Controller
$sum = $f3->get('amount_other');
// If the donation is not a positive amount, we fail the donation.
if ($f3->get('amount') < 1) {
$f3->set("error", _("Montant du don invalide, il doit être supérieur à 1€."));
$f3->set('amount', $sum);
$status = 0;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment