Problem/Motivation
New option "Disable front page redirects for the administrator role." should be hidden unless "Authenticated users" checkbox is enabled. Otherwise this makes no sense and is confusing.
Furthermore it should be reset to FALSE on form save, if "Authenticated users" checkbox is NOT enabled so that this doesn't cause unexpected results.
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork front-3438841
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
nidhi27Comment #5
nidhi27I have created #MR13 to hide the checkbox based on the condition.
Kindly review it and let me know if any changes are needed.
Comment #6
anybodyThanks @nidhi27 I left a comment. Please fix it and test yourself.
Comment #7
nidhi27Hi @Anybody,
Please check my comment and provide your input.
Comment #8
anybodyCould you eventually add test coverage for these options? (not the states api part)?
Then we'd be safe it works as expected now and in the future!
TL;DR: If hidden, the checkbox should never be "TRUE" after save.
Comment #9
nidhi27Hi @Anybody,
I think It would be great if we add all the test cases together in https://www.drupal.org/project/front/issues/3438834. Let me know what do you suggest.
Comment #10
anybodyYeah that would also be fine.
Comment #11
nidhi27Comment #12
anybodyGreat! Ready for sign-off by codemaster @Grevil! :)
Comment #13
nidhi27Comment #14
nidhi27Hii,
I have added the test case for this functionality. Let me know if any changes are needed.
Thanks!
Comment #16
grevil commentedOk, this should be it, let's wait for the test output. Thanks for your work @nidhi27!
Comment #17
grevil commentedTest is green again.