Task #853
closed
Boolean system configuration options cannot be unset
Added by Peter Štrunc about 7 years ago.
Updated over 6 years ago.
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
- Description updated (diff)
- 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 :-).
- Status changed from Needs feedback to In Progress
- Assignee changed from Peter Štrunc to Vít Švanda
- 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.
- Priority changed from Normal to High
We encountered this problem on two other projects.
After consultation with team. I increased priority of the task.
- Status changed from New to In Progress
- Target version set to Jade (8.1.0)
- 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?
- Related to Task #1052: delete non empty EAV (even with values) added
- 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.
- Status changed from Resolved to Closed
Also available in: Atom
PDF