search_uninstall does not delete 'search_cron_limit'. This applies to 5.1 as well, although this patch is against 6.x-dev

Comments

Freso’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new526 bytes

I can reproduce this bug.

The patch doesn't apply:

gentoo-vm drupal6 # patch modules/search/search.install search6_install.txt
patching file modules/search/search.install
Hunk #1 FAILED at 18.
1 out of 1 hunk FAILED -- saving rejects to file modules/search/search.install.rej

The attached re-rolled patch removes the variable on uninstall and thus fixes the bug. And there was much rejoicing. :)

Test procedure:
Install/enable the search module, go to admin/settings/search and change "Items to index per cron" to something other than the default, check the "variable" table in the database that "search_cron_limit" is there, disable and then uninstall the search module, check the "variable" table, apply patch, enable search module and then disable and uninstall module again, check the "variable" table this last time, as "search_cron_limit" should no longer be there! Woohoo!

gábor hojtsy’s picture

Status: Reviewed & tested by the community » Fixed

Thanks, committed.

Freso’s picture

Version: 6.x-dev » 5.x-dev
Status: Fixed » Needs review
StatusFileSize
new566 bytes

Since the problem appears in D5, it should be fixed there as well. Ported patch attached.

drumm’s picture

Status: Needs review » Fixed

Committed to 5.x.

Anonymous’s picture

Status: Fixed » Closed (fixed)