Projet

Général

Profil

Bug #7861

manage: entity field is disabled and readonly, but considered when looking for required field

Ajouté par Frédéric Péters 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:
16 juillet 2015
Echéance:
% réalisé:

100%

Temps estimé:
Patch proposed:
Non
Planning:

Description

In the management interface I had a user that was not attached to an entity, I was trying to change one of the attributes but couldn't submit the form as there was no entity, and the entiy field was marked disabled and readonly, so I couldn't even select the default entity.

Révisions associées

Révision 7cd1455a (diff)
Ajouté par Benjamin Dauvergne il y a presque 9 ans

manager: remove disabledness of the entity field in user creation form for superusers (fixes #7861)

It also fixes usability problems for administrator of one or many entities.

Révision dd358770 (diff)
Ajouté par Benjamin Dauvergne il y a presque 9 ans

manager: improve test on user creations (#7861)

Historique

#1

Mis à jour par Frédéric Péters il y a presque 9 ans

Worse, for an user that had entity set to the default entity, the form would not validate either, as the entity was not submitted (because the select was disabled).

#2

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

  • Assigné à mis à Benjamin Dauvergne

I think the rules for adding/editing an user should be:

User status \ Number of entities 1 many
superuser Can add/edit an user with or without an entity (entity field not required)
administrator of users in 1 entity New/Edited user is automatically in the only visible entity, entity field is read-only
administrator of users in many entities Cannot happen administrator must select one entity in the one he administrates

I'll define test cases following these rules.

#3

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

  • Statut changé de Nouveau à Résolu (à déployer)
  • % réalisé changé de 0 à 100
#4

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

  • Version cible mis à 2.2.0
#5

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

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

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

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

Formats disponibles : Atom PDF