Posted by Michael Beechey on October 27, 2008 at 8:47pm
| 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
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
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
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.