Projet

Général

Profil

Bug #7386

custom user fields appear on profile edit page even if not set as user_visible and editable

Ajouté par Serghei Mihai il y a presque 9 ans. Mis à jour il y a plus de 6 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Catégorie:
-
Version cible:
Début:
27 mai 2015
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:

Fichiers

Révisions associées

Révision 53a7ce69 (diff)
Ajouté par Serghei Mihai il y a presque 9 ans

fix displaying custom user attributes in forms (#7386)

Historique

#1

Mis à jour par Benjamin Dauvergne il y a presque 9 ans

  • Assigné à mis à Serghei Mihai
  • Version cible mis à 2.2.0
#4

Mis à jour par Benjamin Dauvergne il y a presque 9 ans

I'm not sure of that:

 self.assertFalse(set(form.fields), set(['national_number', 'custom']))

#5

Mis à jour par Serghei Mihai il y a presque 9 ans

If there are no other user fields to edit(like first and last name) the only possible fields to edit could be national_number and custom.
And in default config there are no other fields.

So I check if both fields do not appear if the form.

#6

Mis à jour par Serghei Mihai il y a presque 9 ans

After discussion with Benjamin I prefer check the fields presence with:

        self.assertNotIn('national_number', form.fields)
        self.assertNotIn('custom', form.fields)

#8

Mis à jour par Serghei Mihai il y a presque 9 ans

  • Statut changé de Nouveau à Résolu (à déployer)
commit 53a7ce694e3215dcb872dccf52dbe84a870d172a
Author: Serghei Mihai <smihai@entrouvert.com>
Date:   Fri May 29 11:51:57 2015 +0200

    fix displaying custom user attributes in forms (#7386)
#9

Mis à jour par Benjamin Dauvergne il y a environ 8 ans

  • Statut changé de Résolu (à déployer) à Solution déployée
#10

Mis à jour par Benjamin Dauvergne il y a plus de 6 ans

  • Statut changé de Solution déployée à Fermé

Formats disponibles : Atom PDF