TextareaCache
TextareaCache copied to clipboard
fixed bugs in ta_database.updateDatabaseVersion()
Several things fixed:
- A piece of code correctly updated 'setting' in the database by comparing data.setting to _resetData.setting, but that code got deleted for no reason in the commit a6efa62 . I put it back.
- The code for updating 'version' in the commit 07b3e88 had mistaken me.data.setting.version for me.data.version
- Only 'setting' was skipped in the for-loop, which is not right
- Now correctly updates 'setting' and 'exceptions', deleting option values that are not in _resetData.setting