Closed (fixed)
Project:
DraggableViews
Version:
7.x-2.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
8 Feb 2012 at 13:29 UTC
Updated:
28 Mar 2012 at 12:10 UTC
If a view is set to remember chosen filter or the filter is required and the view is opened without any arguments passed in URL it is setting those arguments without using URL params and the sorting order gets saved witout those arguments (as if none were selected) which is incorrect and misleading behaviour.
Comments
Comment #1
philipz commentedI've changed
$view->exposed_inputto$view->exposed_raw_inputindraggableviews_views_form_submitfunction and so far it works as expected. Theexposed_raw_inputis passed even if arguments are not present in the URL (which is not happening forexposed_input).After saving it redirects to a view with arguments in URL so everyting looks great but then when I get back to the view with no arguments set in the URL the order is messed up so maybe the sorting handler should get the arguments the same way?
EDIT:
I did the same thing with with
$view_query->view->exposed_inputchanging it to$view_query->view->exposed_raw_inputand now the view with required filters (not set in URL but default ones) is displaying fine and the same as if the arguments were in URL.Comment #2
ygerasimov commentedThank you very much for this fix. Committed http://drupalcode.org/project/draggableviews.git/commit/f550fd0