-
-
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
(dev/core#594) Fix key-value mappings for WYSIWYG setting (editor_id). Accept keyColumn option. #13361
Conversation
(Standard links)
|
(CiviCRM Review Template WORD-1.2)
|
@totten not sure but i used the similar principle as we have in the DAOs https://docs.civicrm.org/dev/en/latest/framework/database/schema-definition/#table-field-pseudoconstant |
@seamuslee001 Cool, that makes sense -- so it's basically adapting a convention from the DAO/fields metadata to also work in the settings metadata. I'll just update the description so that it reflects that. |
@totten i'm working on a post upgrade message now. In terms of running it i would check out the test site -> go to the display preferences -> set the editor to be ckeditor -> make sure the configure button is visible -> then after saving the page check a page with a text editor e.g. manage contribution page and check the ckeditor loads. |
…e not on value Add in a post upgrade message encourging people to check their editor setting
593086b
to
babfca8
Compare
@totten added the post upgrade message now |
@seamuslee001 I've tested this patch and it works as expected. |
@totten if your happy with the upgrade message i think this is good for merge @monishdeb |
Thanks @andrewpthompson - that covers the last @seamuslee001, I did a little copy-editing on the message. Merge-on-pass. |
thanks @totten |
Merging as per the tag |
Overview
This fixes an issue where by the editor_id setting does not work properly because the javascript and other parts are expecting the string of the name of the Editor whereas in 719eda4#diff-45cac86e3687ecb3e1996985223d2a31 it was changed to keyed on values because that is what is the default for settings pseduoconstants
Before
editor_id
in the GUI leads to an invalid setting.Settings.getoptions
in APIv3, one can set anoptionGroupName
. The key-value mappings are implicitly based onvalue=>label
.After
editor_id
in the GUI leads to a valid setting.Settings.getoptions
in APIv3, one can set anoptionGroupName
. By default, the key-value mappings are based onvalue=>label
(as before), but one may optionally customize with thekeyColumn
. This parallels the XML Schema convention that shapes most generic*.getoptions
calls.ping @mattwire @monishdeb @andrewpthompson @MegaphoneJon