Actions
Anomalie #1767
closedSome issues with contribution amount set to 0
Start date:
01/04/2024
Due date:
% Done:
100%
Estimated time:
Version utilisée:
Vote:
Description
Contribution amount is set into contribution if !empty()
; and required fields on isset($this->_amount)
.
When trying to set "0" as contribution value; _amount
property is never set; and that silently fails on contribution update, original amount is always kept.
Contribution creation with an amount of "0" should also fail but... Required fields are based on isFee()
which currently returns null on creation; therefore _amount
is not mandatory on creation; and value is set to NULL
in database. When loading such a contribution, database value is casted, therefore NULL
becomes 0
\o/
Updated by Johan Cwiklinski 11 months ago
- Status changed from Nouveau to Résolu
- % Done changed from 0 to 100
Appliqué par commit 731c7309e94cfe5ab50e81338eb9040ee995eaa1.
Actions