Posted by kenorb on February 18, 2010 at 4:50pm
2 followers
Jump to:
| Project: | Views Or |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | task |
| Priority: | minor |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
I've got following error on view edit:
warning: array_diff() [function.array-diff]: Argument #2 is not an array in views_or/views_or_handler_filter.inc on line 135.
warning: Invalid argument supplied for foreach() in views_or/views_or_handler_filter.inc on line 135.
warning: array_diff() [function.array-diff]: Argument #2 is not an array in views_or/views_or_handler_filter.inc on line 135.
warning: Invalid argument supplied for foreach() in views_or/views_or_handler_filter.inc on line 135.using Views 3.x
Comments
#1
Ok, probably I had wrong order of Begin and End alternatives;/
#2
I just fell into this trap too! It's very very easily done...
So converting this to a task: Add some views validation to catch mis-ordered or missing Views Or arguments/filters.
I.e. in the same way you can't save a Page display view without having a path, or Fields without selecting fields, this module should prevent views being saved with either missing required bits (begin, end, at least one alternative) or the wrong order trap myself and kenorb fell into...
Is this a goer?
#3
Forgot to re-open..