When you delete a view from the UI, the corresponding filter is not deleted from the view_filter table. Didn't check the other components of the views. Would it be possible to make the vid column a foreign key and use "on cascade delete" with it? Making it foreign key would bring another advantage: the table would be editable with the mysql browser UI.

Comments

merlinofchaos’s picture

Status: Active » Fixed

Due to database compatibility, Drupal doesn't use foreign keys at all, so that isn't really an option for us. It may be in the future, but it doesn't seem likely.

I've fixed the delete routine in -dev to delete from view_filter and view_exposed_filter. Thanks for the heads up.

Anonymous’s picture

Status: Fixed » Closed (fixed)