Bug #7386
custom user fields appear on profile edit page even if not set as user_visible and editable
Début:
27 mai 2015
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Fichiers
Révisions associées
Historique
Mis à jour par Benjamin Dauvergne il y a presque 9 ans
- Assigné à mis à Serghei Mihai
- Version cible mis à 2.2.0
Mis à jour par Serghei Mihai il y a presque 9 ans
- Fichier 0001-fix-displaying-custom-user-attributes-in-forms-7386.patch 0001-fix-displaying-custom-user-attributes-in-forms-7386.patch ajouté
- Patch proposed changé de Non à Oui
Mis à jour par Serghei Mihai il y a presque 9 ans
- Fichier 0001-fix-displaying-custom-user-attributes-in-forms-7386.patch 0001-fix-displaying-custom-user-attributes-in-forms-7386.patch ajouté
Updated patch with tests
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']))
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.
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)
Mis à jour par Serghei Mihai il y a presque 9 ans
- Fichier 0001-fix-displaying-custom-user-attributes-in-forms-7386.patch 0001-fix-displaying-custom-user-attributes-in-forms-7386.patch ajouté
Finally one single assertEqual
Depends of #7391
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)
Mis à jour par Benjamin Dauvergne il y a environ 8 ans
- Statut changé de Résolu (à déployer) à Solution déployée
Mis à jour par Benjamin Dauvergne il y a plus de 6 ans
- Statut changé de Solution déployée à Fermé
fix displaying custom user attributes in forms (#7386)