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

philipz’s picture

I've changed $view->exposed_input to $view->exposed_raw_input in draggableviews_views_form_submit function and so far it works as expected. The exposed_raw_input is passed even if arguments are not present in the URL (which is not happening for exposed_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_input changing it to $view_query->view->exposed_raw_input and 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.

ygerasimov’s picture

Status: Active » Fixed

Thank you very much for this fix. Committed http://drupalcode.org/project/draggableviews.git/commit/f550fd0

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.