Download & Extend

Menus created by SimpleViews don't disappear, can't be deleted

Project:SimpleViews
Version:6.x-1.0
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:needs review

Issue Summary

What a great idea...Thanks!

Just installed it....a couple of quick questions:

- Even though I grant views permission to only authenticated users..it's still visible on the nav menu for anonymous users.

- When the view is deleted it still shows on Nav menu (just a comment...I then disabled it at the menu level)

thanks!

Comments

#1

Component:User interface» Code
Category:support request» bug report

I've confirmed this (and reclassified it) as a bug in the code. I disagree with Mr. Beechey that this is just a support issue: SimpleViews creates a menu that *can't* be deleted.

It's easy to reproduce:

1) Create a SimpleView.
2) Delete it
3) Menu item (in Navigation menu) remains. Can't be deleted through SimpleViews, Views, or /admin/build/menu.

Good luck!

#2

Title:Menu/Access» Menus created by SimpleViews don't disappear, can't be deleted

Changed title to be clearer.

#3

The problem is that the menu cache is not getting cleared and rebuilt. It would be preferable if the code were fixed to do that. A workaround which may help some folks: after deleting a simple view, go to the modules page. That will clear the cache, making the menu item for the deleted view disappear.

#4

Status:active» needs review

The attached patch should fix this.

In the meantime, another workaround: creating a new simple view clears the menu cache which should get rid of menu items for previously deleted simple views.

AttachmentSize
simpleviews_delete_menu_fix.patch 580 bytes