Postponed
Project:
Workbench Access
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Dec 2012 at 18:57 UTC
Updated:
11 Dec 2012 at 20:59 UTC
Views filter for Workbench access sections not working and throwing error.
Warning: array_keys() expects parameter 1 to be array, null given in workbench_access_handler_filter_access->query() (line 98 of /............................/sites/all/modules/workbench_access/includes/workbench_access_handler_filter_access.inc).
Comments
Comment #1
technikh commentedactually works if this option is unchecked.
Comment #2
agentrickardPlease define the problem more clearly. I don't understand the steps to replicate.
Comment #3
technikh commentedadd the workbench access filter in a view, expose it and check "Allow multiple selections". The error shows up on the output page.
also the field allows to multi-select even if "Allow multiple selections" is not checked.
Comment #4
agentrickard"Allow multiple selections" on the Workbench Access settings or the View settings?
On the WA settings, that only applies to the node editing form.
Comment #5
technikh commentedView settings
Comment #6
agentrickardI see that #multiple is hardcoded to TRUE in any event, ignoring the Views setting, which is why this breaks.
For now, leave that selection unchecked.
Comment #7
agentrickardThis filter, btw, is not meant for anything other than administrative use.
Comment #8
technikh commentedYes. want to give the content admin a way to filter by sections. [building sections from Menu]
Comment #9
agentrickardThe way this is currently designed -- which is admittedly backwards -- is to not add the filter to your view but to tag the View with "Workbench" and then the filter is added for you.
This is goofy, admittedly, and fixing this issue would have to be part of changing that logic. So my advice for now is either a) uncheck that option; or b) remove the filter and use the tag instead.
Comment #10
technikh commentedThanks agentrickard
It works for my use case. as I commented out in #1 I unchecked that option and anyway I wanted my client to filter by multiple sections.
Comment #11
technikh commentedalso I don't know if this has to be opened as a new bug but
I get below error because my view has workbench filter with sections of menus more than 100 items
Error: Maximum function nesting level of '100' reached, aborting!
Comment #12
agentrickardI think that is separate. I've never seen that before. Please export your View into the other issue.
Comment #13
agentrickard