Projet

Général

Profil

Actions

Anomalie #721

fermé

Galette v0.7.5.4. Champs inaccessibles dans "Ajouter un adhérent".

Ajouté par Roland Telle il y a plus de 10 ans. Mis à jour il y a plus de 10 ans.

Statut:
Fermé
Priorité:
Haut
Assigné à:
Catégorie:
Core
Version cible:
-
Début:
11/10/2013
Echéance:
% réalisé:

100%

Temps estimé:
Version utilisée:

Description

La page "Ajouter un adhérent" s'affiche normalement mais les champs Titre, Nom, Prénom, Compte, Statut, Administrateur Galette, Date de création (sauf via le calendrier), Autres informations (admin) sont inaccessibles.

Cf. également https://mail.gna.org/public/galette-discussion/2013-10/msg00039.html

Mis à jour par Johan Cwiklinski il y a plus de 10 ans

  • Catégorie mis à Core
  • Statut changé de Nouveau à In Progress
  • Assigné à mis à Johan Cwiklinski

Merci Roland.

Pour corriger ce problème :

diff --git a/galette/ajouter_adherent.php b/galette/ajouter_adherent.php
index 06c005e..4decebe 100644
--- a/galette/ajouter_adherent.php
+++ b/galette/ajouter_adherent.php
@@ -62,7 +62,7 @@ $dyn_fields = new DynamicFields();
 // new or edit
 $adherent['id_adh'] = get_numeric_form_value('id_adh', '');

-if ( $adherent['id_adh'] != $login->id
+if ( $adherent['id_adh'] !== $login->id
     && ($login->isAdmin() || $login->isStaff() || $login->isGroupManager())
 ) {
     $adherent['id_adh'] = get_numeric_form_value('id_adh', '');

Mis à jour par Johan Cwiklinski il y a plus de 10 ans

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

Mis à jour par Johan Cwiklinski il y a plus de 10 ans

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

Formats disponibles : Atom PDF