Closed (fixed)
Project:
Views Dynamic Fields
Version:
7.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
11 Aug 2011 at 04:40 UTC
Updated:
19 Jul 2017 at 07:43 UTC
Jump to comment: Most recent
Comments
Comment #1
well mannered squirrel commentedI would be interested in this too.
Actually, on my site when a user first visits the view page, there is an error because all fields are dynamic fields and exposed and by default no dynamic field checkboxes are selected thus nothing is displayed. (My dynamic fields are exposed together with other filters)
I find it odd because the other filters default to "all" when no checkboxes are selected, however the dynamic fields default to "nothing" hence an empty view.
Similarly, if I enable the "reset" button in my view, when resetting all the dynamic fields become unchecked and the view displays nothing. :(
Is there a hook I can use to create a small module to default the dynamic fields form items to "checked" or something like that ?
Comment #2
donSchoe commentedIt's a bug. Just looked through the code,
It's already implemented but not working. But I can't see why.
Both, the options and the default values are arrays with correct key->value pairs. Maybe this is a wrong API implementation but the documation does not say how checkboxes default values should look like.
Related: http://drupal.stackexchange.com/q/112906/13526
Comment #4
donSchoe commentedA workaround is to enable the sortability, see #935910: Enable sortability of displayed fields.
This will display default checked fields correctly.
Comment #5
donSchoe commentedSortability is default behaviour now and can not be disabled. (It's a feature! :D)
Comment #6
donSchoe commentedComment #9
delacosta456 commentedhi
this is old but i would like to suggest or inform that default shouldn't be check in som case.
Why ?
sometime we may have multiple expose filter . and we all know that Drupal only have one Apply button for expose filter.
So if the table was preconfigured to be cleaner (less display of column) , when the user click apply to filter the table will now be refresh with all all columns displays which may/is not what was expwcted