Download & Extend

Don't update views which have already been updated to new settings in update hook

Project:Views Bulk Operations (VBO)
Version:6.x-1.x-dev
Component:Core
Category:task
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

In update hook #6001, views are only manipulated and need re-saving if they still use an older settings schema for VBO. However, the views are marked to be re-saved into the database regardless of whether they use the old or new VBO settings schema. All views which use VBO are resaved. Because of this, exported views which have already been fixed by a previous update are all resaved when the database is updated on a different instance of the site.

It can be fixed by a very simple patch, included below. The only real change is in the position of the line $changed = TRUE . The rest of the lines are just changed in indentation. The patch ensures views are only set to be resaved if they are manipulated by the update hook.

Comments

#1

Here's the patch

AttachmentSize
improve_update_hook_views_saving-1388918.patch 3.3 KB