Project

General

Profile

Anomalie #721

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

Added by Roland Telle almost 6 years ago. Updated almost 6 years ago.

Status:
Fermé
Priority:
Haut
Category:
Core
Target version:
-
Start date:
10/11/2013
Due date:
% Done:

100%

Estimated time:
Version utilisée:
Vote:

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

Associated revisions

Revision 541758dd (diff)
Added by Johan Cwiklinski almost 6 years ago

Superadmin can't set numerous members fields; fixes #721

History

#1

Updated by Johan Cwiklinski almost 6 years ago

  • Category set to Core
  • Status changed from Nouveau to In Progress
  • Assignee set to 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', '');

#2

Updated by Johan Cwiklinski almost 6 years ago

  • % Done changed from 0 to 100
  • Status changed from In Progress to Résolu
#3

Updated by Johan Cwiklinski almost 6 years ago

  • Status changed from Résolu to Fermé

Also available in: Atom PDF