Problem/Motivation
We forgot to add an update hook in #3356063: image_captcha_update_9002 incorrectly updated image_captcha instead of captcha title to notify the user, that their custom captcha title will be replaced with "Captcha". Let's implement the update hook here.
Steps to reproduce
Proposed resolution
Implement the update hook.
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork captcha-3365278
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 #3
grevil commentedComment #4
anybodyIndeed I made a mistake in #3356063: image_captcha_update_9002 incorrectly updated image_captcha instead of captcha title. It shouldn't have got RTBC'd. Instead the old title should have been read onto a variable and set for the new variable.
So I reverted that change, that was never released and only part of 2.x-dev for some minutes. Let's fix and test it here finally. Thanks for the correction @Grevil.
Comment #5
grevil commentedComment #6
grevil commentedDone, please review!
Comment #7
grevil commentedWe accidentally added update hook 9002 inside image_captcha instead of captcha inside #3321861: Change image_captcha submodule and test modules location.. This patch will also resolve that problem.
Comment #8
grevil commentedPleae review!
Comment #9
grevil commentedBoth newly added update hooks apply cleanly and after update, the incorrect image_captcha config key doesn't exist any more AND the previously set custom title is used again!
Comment #10
anybodyReviewing!
Comment #11
anybodyComment #12
grevil commentedUpdate hook works as expected. RTBC!
Comment #14
grevil commented