The block plugin and class name are misspelled with "seach" instead of "search." Would be nice to correct this so that it is correct in the block UI and doesn't persist in future code.

Comments

heatherwoz created an issue. See original summary.

heatherwoz’s picture

Status: Active » Needs work
StatusFileSize
new1.96 KB

Here is a patch. For sites that already have the search block placed, it will show a message after clearing caches, "This block is broken or missing. You may be missing content or you might need to enable the original module." The block needs to be recreated. I am not sure if there is a way to fix this with an update hook. There aren't many sites reporting using this module yet, so maybe it doesn't matter.

rithesh bk’s picture

Assigned: Unassigned » rithesh bk
Issue tags: +VbContribution2020

currently working on this ........

rithesh bk’s picture

StatusFileSize
new216.96 KB

@heatherwoz #2 patch is not working ...... Please find the attached screenshot ......

rithesh bk’s picture

Assigned: rithesh bk » Unassigned
Status: Needs work » Needs review
StatusFileSize
new713 bytes

@heatherwoz . No need to change the Filename and id = "flexible_google_seach_block". Let us keep as it is , by changing only the admin_label = "Flexible Google Custom Search block". This solution will work for existing websites. But we have to clear the cache once in order to take the effect. Please find the updated working patch .......

ramya balasubramanian’s picture

Status: Needs review » Reviewed & tested by the community

This patch is working fine.

hunde.keba’s picture

Status: Reviewed & tested by the community » Postponed
heatherwoz’s picture

StatusFileSize
new975 bytes

My original patch wasn't encoded correctly. Re-uploading. (Fixing the spelling in the UI is good, but I still think for the long term it would be best to fix the spelling all around).

hunde.keba’s picture

Thanks for updating the encoding.
I agree, that why I suggested postponing this fix. I think fixing typos in the entire module will be helpful (Will work on this soon.).