Task #853
closedBoolean system configuration options cannot be unset
100%
Description
If connector defines a required configuration property of boolean type, that property must be always set to true. When trying to unset this property, it becomes red and configuration cannot be saved. See attached gif. Experienced on 7.6.0-SNAPSHOT.
Files
Related issues
Updated by Vít Švanda about 7 years ago
- Status changed from New to Needs feedback
- Assignee changed from Vít Švanda to Peter Štrunc
Why is this attribute set as mandatory?
A mandatory checkbox is generally quite extreme. I personally know only one case when this combination was needed. Specifically, we needed the user to confirm the license terms (they must tick it).
If you need three states of this attribute (true/false/ null), maybe enumeration will be better choice.
P.s. Greate GIF :-).
Updated by Peter Štrunc about 7 years ago
- Status changed from Needs feedback to In Progress
- Assignee changed from Peter Štrunc to Vít Švanda
This is configuration property from Tirasa's AD connector. I think that they are trying to say, that the value must be set to something, so solution would be not to control boolean checkboxes on required constraint i think. I cannot think of any other interpretation of required boolean property either.
Updated by Vít Švanda about 7 years ago
- Status changed from In Progress to New
- Assignee changed from Vít Švanda to Radek Tomiška
- Priority changed from Urgent to Normal
Ok, we will used selectbox with True/False value for this case (required checbox).
- Temporaly solution: Manualy (via UI) set attribute definition for the checbox as not required.
Updated by Petr Michal over 6 years ago
- Priority changed from Normal to High
We encountered this problem on two other projects.
After consultation with team. I increased priority of the task.
Updated by Radek Tomiška over 6 years ago
- Status changed from New to In Progress
- Target version set to Jade (8.1.0)
Updated by Radek Tomiška over 6 years ago
- Status changed from In Progress to Needs feedback
- Assignee changed from Radek Tomiška to Ondřej Kopr
- % Done changed from 0 to 90
I changed face for required boolean attribute generated for connector configuration - it's rendered as required boolean select box with 'Yes / No' options.
I improved saving filled configuration (~eav form) values - filled form values are saved only.
Could you do a feedback please?
Updated by Radek Tomiška over 6 years ago
- Related to Task #1052: delete non empty EAV (even with values) added
Updated by Ondřej Kopr over 6 years ago
- Status changed from Needs feedback to Resolved
- Assignee changed from Ondřej Kopr to Radek Tomiška
- % Done changed from 90 to 100
Works awesome! I tested on system and identity eav's. I changed face type to selectBox and now is possible unset the value. Thank you for the feature.
Updated by Radek Tomiška over 6 years ago
- Status changed from Resolved to Closed