-
-
Notifications
You must be signed in to change notification settings - Fork 824
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hide Adding Option Value for Locked Groups #11962
Hide Adding Option Value for Locked Groups #11962
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Await more reviews from others (non compucorp)
|
@colemanw any chance we could get a review for this? Willing to put in time reviewing another PR if needed |
@mickadoo in the last screenshot it says "You cannot add or delete options in this list" right above items that contain a "Delete" button beside them... ? |
@colemanw that's a good point, it looks like this message never matched functionality. I've added 3 new commits to remove the option to delete option values for locked options groups, both in the custom field edit screen and the option group edit screen. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved
Updates approved @mickadoo. |
I give a Pass to the remaining items in the checklist. |
@civicrm-builder retest this please |
Included in CiviCRM 5.3.0 Core PR: civicrm#11962
Included in CiviCRM 5.3.0 Core PR: civicrm#11962
Overview
You can edit option values from a few different places:
civicrm/admin/options?gid=<option_group_id>
civicrm/admin/options/<option_group_name>
civicrm/admin/custom/group/field/option?action=browse&gid=<custom_group_id>&fid=<custom_field_id>
When "is_locked" = 1 only the first method hides the button to add new option values In all. In all places you can delete option values, despite the notice on locked group edit pages saying:
The button to add an option value will be hidden for locked option groups by this PR. It will also remove the option to delete option values for locked option groups.
Before
From Custom Field Edit page
From Option Group Edit Page Using Group ID
From Option Group Edit Page Using Group Name
After
From Custom Field Edit page
From Option Group Edit Page Using Group Name
From Option Group Edit Page Using Group ID
Link to Issue
Notes
I fixed a few unrelated typos and removed one unused
$config
variable in this