Projet

Général

Profil

Actions

Anomalie #1767

fermé

Some issues with contribution amount set to 0

Ajouté par Johan Cwiklinski il y a 4 mois. Mis à jour il y a 3 mois.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Catégorie:
Core
Version cible:
Début:
04/01/2024
Echéance:
% réalisé:

100%

Temps estimé:
Version utilisée:

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/

Mis à jour par Johan Cwiklinski il y a 4 mois

  • Statut changé de Nouveau à Résolu
  • % réalisé changé de 0 à 100

Mis à jour par Johan Cwiklinski il y a 3 mois

  • Statut changé de Résolu à Fermé
Actions

Formats disponibles : Atom PDF