Projet

Général

Profil

Actions

Anomalie #1411

fermé

Bug dans PdfContribution::__construct

Ajouté par Manuel Her il y a environ 4 ans. Mis à jour il y a environ 4 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Catégorie:
Core
Version cible:
Début:
09/03/2020
Echéance:
% réalisé:

100%

Temps estimé:
Version utilisée:

Description

Bonjour,

Il y a un problème à la ligne 81 :
$member = new Adherent($zdb, $this->contrib->member);

$this->contrib->member contient bien l'id de l'adhérent, mais il est de type string et non int

du coup Adherent::__construct ne charge pas l'adhérent
if ($args == null || is_int($args)) {
if (is_int($args) && $args > 0) {
$this->load($args); <----- pas executé
} else {

Si je cast en int :
$member = new Adherent($zdb, (int) $this->contrib->member);

ça fonctionne, mais n'y a t-il pas un autre problème ?

Je suis en Php 7.2.24.

Manuel

Actions

Formats disponibles : Atom PDF