-
Notifications
You must be signed in to change notification settings - Fork 9
With the view "files" disabled, localgov_core cause an exception #283
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
With the view "files" disabled, localgov_core cause an exception #283
Conversation
As this is something that can be switched on and off-again, perhaps it would be better to do it in |
I don't think so, this solution works even when switching on and off the view. I would avoid as much as possible procedural code |
OK then we should probably make a test for it.
|
@ekes thanks for the feedback, I'll try to reserve some time to it the coming days |
I was about to make a quick test, but then see that #221 was supposed to move the files view in the menu. At least on my installs at the moment I get the menu item under content and the tab under media. Found out this is because "This link is provided by the Admin Toolbar Extra Tools module. The title and path cannot be edited." I think we rather want to see if we can do something about that. So thinking aloud we want to get in later than that and change or remove that item and insert ours. I'm going to think the code on this PR could do it if we can be certain to come in later in the derivatives loop, or assuming the alter hook comes in later - that. |
OK so we can't remove the one from |
The view is supplied by localgov_media so creating the link here too. Probably wants to be in some other LocalGov Admin configuration module really.
#297) * With the view "files" disabled, localgov_core cause an exception * With the view "files" disabled, localgov_core cause an exception - comment empty catch * The intention of #221 was to move the files tab from the main content menu. Note: This is opinionated administration configuration that probably shouldn't be enforced on users just requiring core or media. It probably wants to live somewhere else. * Link to the files view under media. As per #221. See also #283 issues. The view is supplied by localgov_media so creating the link here too. Probably wants to be in some other LocalGov Admin configuration module really. * Coding standards fix --------- Co-authored-by: Marco Pagliarulo <marcopagliarulo@gmail.com> Co-authored-by: Stephen Cox <stephen@agile.coop>
I think we can close this one, @ekes re-worked the changes on see #297 Thanks @marcopagliarulo ! |
Yes I think it didn't get auto closed because the commit was squashed. |
What does this change?
Fixes #282
How to test
How can we measure success?
The media view is accessible even when the files view is not available