The Backup and Migrate uninstall function removes all variables associated with the module, except those that indicate the last time a certain schedule was run.
The uninstall function calls variable_del('backup_migrate_schedule_last_run_')
, but that only removes a variable with the base name 'backup_migrate_schedule_last_run_'. Actual variables have the name of the schedule as suffix, for example 'backup_migrate_schedule_last_run_untitled_schedule'.
Instead of trying to delete variables that only use the base name, the uninstall function should delete all variables whose name starts with 'backup_migrate_schedule_last_run_'.
Comment | File | Size | Author |
---|---|---|---|
#3 | backup_migrate-n3064783-3.patch | 740 bytes | DamienMcKenna |
| |||
#2 | backup_migrate-n3064783-2.patch | 863 bytes | BrankoC |
|
Comments
Comment #2
BrankoC CreditAttribution: BrankoC as a volunteer commentedThe attached patch fixes this.
Comment #3
DamienMcKennaRerolled.
Comment #5
DamienMcKennaCommitted. Thanks.