Commit 6acca027 authored by merlinofchaos's avatar merlinofchaos

#133144: views filters weren't getting deleted when a view was deleted, causing cruft buildup.

parent 5ff84c63
......@@ -34,6 +34,7 @@ Views 4.7.x-dev
o #130139: (simplymenotu) change changelog to top-down format.
o #130196: (the greenman) Views filters improperly ignored table aliasing.
o #130381: (mgull) Clear the page cache after a view is saved or deleted so that anonymous users will see changes.
o #133144: views filters weren't getting deleted when a view was deleted, causing cruft buildup.
New features:
o #105620: (Attempt 2) allow modules to alter views tables + arguments
......
......@@ -1035,6 +1035,8 @@ function _views_delete_view($view) {
db_query("DELETE FROM {view_sort} where vid=%d", $view->vid);
db_query("DELETE FROM {view_argument} where vid=%d", $view->vid);
db_query("DELETE FROM {view_tablefield} where vid=%d", $view->vid);
db_query("DELETE FROM {view_filter} where vid=%d", $view->vid);
db_query("DELETE FROM {view_exposed_filter} where vid=%d", $view->vid);
cache_clear_all(); // in Drupal 4.7 this clears everything.
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment