Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LQDN Adminsys
don
Commits
d8d5d412
Commit
d8d5d412
authored
Oct 04, 2021
by
nono
💻
Browse files
Merge branch '113-dons-negatifs' into 'preprod'
Resolve "Dons négatifs" Closes
#113
See merge request
!135
parents
8e937329
7f785f1d
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/controller/campaign.php
View file @
d8d5d412
...
...
@@ -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
->
error
(
"403"
);
}
$f3
->
set
(
'amount'
,
$sum
);
$status
=
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment