Feature #2698
closed
Select the value if the required select box has only one value
Added by Alena Peterová almost 4 years ago.
Updated over 3 years ago.
Description
If a select box has only one possible value, and the value is required, choose the value by default.
Use case:
- A local administrator has rights to manage users in only one organization. When creating a new user, the admin shouldn't select the organization at all, it should be automatically selected.
- Other places were it's usual to have only one value - mapping for the synchronization etc.
- Target version set to 11.0.0
- Assignee changed from Radek Tomiška to Vít Švanda
- Estimated time set to 8.00 h
- Status changed from New to In Progress
- Status changed from In Progress to Needs feedback
- Assignee changed from Vít Švanda to Radek Tomiška
- % Done changed from 0 to 90
- Status changed from Needs feedback to In Progress
- Assignee changed from Radek Tomiška to Vít Švanda
I did test and code review.
Review notes
- Feature works on default identity contract detail, when work position is required (by form projection), awesome. But selected value cannot be cleared => selected value is returned after clear action again.
- Feature didn't work in form projection for required work position.
- Feature could work in EnumSelectBox the same way. It make sense mainly, when EnumSelectBox has dynamic options.
- Status changed from In Progress to Needs feedback
- Assignee changed from Vít Švanda to Radek Tomiška
- Status changed from Needs feedback to Resolved
- Assignee changed from Radek Tomiška to Vít Švanda
- % Done changed from 90 to 100
I did test and code review, feature works in projection now and clerable button (and option) is hidden by default. Code is nice too, thx!
Note: I found just one trivial issue - when record is selected by tree modal window, then clearable button is shown again (empty option is not shown correctly). It's rare UC, so I'm closing this ticket.
- Status changed from Resolved to In Progress
- Status changed from In Progress to Needs feedback
- Assignee changed from Vít Švanda to Radek Tomiška
- Status changed from Needs feedback to Resolved
- Assignee changed from Radek Tomiška to Vít Švanda
I did test nad code review, it works and code is nice, thx!
- Status changed from Resolved to Closed
- Related to Defect #2841: When we can assign only one role, the modal window is stuck added
Also available in: Atom
PDF