Problem/Motivation
In #3321861: Change image_captcha submodule and test modules location., a title config setting was provided. But a corresponding config schema wasn't added. Let's add it.
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3356063.patch | 981 bytes | heddn |
Issue fork captcha-3356063
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
heddnComment #3
anybodyThanks @heddn! @Grevil could you have a look, please? If someone could provide a MR earlier, that would be super nice :)
Edit: X-Post! Thanks for the patch! :)
Comment #5
grevil commentedThank you, @heddn! I think the update hook is not properly implemented, sorry!
There shouldn't be an "image_captcha" "title" config key. Instead, the "captcha" "title" value should've been set there.
Comment #7
grevil commentedFixed, please review.
Comment #8
heddnShould this update be moved from image_captcha into captcha?
Comment #9
anybody@Grevil could you have a look again, please?
Comment #10
grevil commentedSince we are removing config from image_captcha and adding it to captcha, we need to have both modules activated. We could also only remove the config from image_captcha and be done with it, without touching "captcha", so if people renamed their captcha title to something else, it won't be reset to "CAPTCHA". Either way, this is image_captcha specific.
EDIT: To be safe, we should not change the current patch.
Comment #11
anybodyComment #12
anybodyThank you @heddn and @Grevil! Changes LGTM, #10 sounds reasonable to me. As it was wrongly added in image_captcha, I think it should also be removed in there.
Let's get this fixed! :)
Comment #14
anybodyMerged, thank you!
Comment #15
anybodyComment #16
grevil commentedAs stated in #10 the patch is generally fine as is, BUT we should create an update hook, warning the user, that their potential custom Captcha title will be replaced with "Captcha" and that they have to rename it accordingly after the update.
Comment #17
grevil commentedCreating a follow-up issue.
Comment #18
grevil commentedSee #3365278: [Follow-up] image_captcha_update_9002 incorrectly updated image_captcha instead of captcha title.
Comment #20
grevil commentedWe will adjust the test properly inside #3365278: [Follow-up] image_captcha_update_9002 incorrectly updated image_captcha instead of captcha title.
Comment #21
grevil commentedComment #22
grevil commented@heddn you are completely correct, the update hook should have never existed in image_captcha, but rather in captcha...
Sry, it seems like I over read your comment in #8.
We will fix everything in the follow up issue.