Needs work
Project:
Views (for Drupal 7)
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Jan 2012 at 21:48 UTC
Updated:
17 Feb 2012 at 16:14 UTC
Jump to comment: Most recent file
Comments
Comment #1
merlinofchaos commentedThe pager isn't always part of the exposed form so that's not entirely true.
Comment #2
dawehnerThe best thing about this fix, views already provides a better way: "exposed_form_submit".
What i don't understand: why is the pager plugin stored as part of the form_state.
This patch currently sets $this->options but it get's overridden later.
Comment #3
dawehnerHere is a view to allow fast reproducing.
Comment #4
dawehnerThis patch works, though the test does not yet.
Writing tests often means to fix the test not the code, even this seems to be bad behavior.
Comment #5
Blooniverse commented... this is not a direct reply to any of the comments above or the original posting. This is a general thought, which to me -- as a 'non Viewer' and without the time to look more thoroughly into the whole thing -- seems to be associated with this issue. You can obviously proof me wrong, should I err.
$_GETor not to $_GET. That's why I've stranded here.Yes, might your brain be blessed after reading this novel ... but I am too tired to formulate things in a more appropriate manner, I am verrry sorrry! Anyhow, should you need to know something specific, just let me know. Good night.
Comment #6
dawehnerFirst point: This works as you expect: if you click submit the pager is changed as well: see http://drupal.org/project/issues/views for example
Second point: you need more sleep :)
This seems similar to the first point
4 point: You can write your own pager plugin which can control nearly everything the pager. There is for example a php only pager out there.
Btw: I'm really not sure what this comment had to do with this issue.
Comment #7
Blooniverse commented... thanks, @dereine#6! Maybe I'm really gone now, but at the moment I could nevertheless swear that this is a real issue and therefore I have issued a separate bug report on http://drupal.org/node/1433518. There, in its screen capture, the two things (exposed filter and pager) don't work together properly.
Well, about posting the comment here: my intuition told me so. There is still this $_GET in my head. But if you cannot associate any of my data with this issue, then I will probably have to buy you a beer during one of the coming camps or cons ... or, even healthier, an organic orange juice. ;D
[EDIT::add] A HUGE PUBLIC SORRY FOR MY MISLEADING TWO COMMENTS HERE! It was the 'DATE' module, 200 per cent. See updated http://drupal.org/node/1433518 ! So, f*/$, yes it was a $_GET thing, but not in relation to Views! Sooooorrrry.
Comment #8
Blooniverse commented@dereine#4: I would have tested your patch in favour of your kindness to cure my tiredness, yesterday. But I don't know which dev version I should apply the patch against -- in the meantime (since end of January) there are so many new Views versions out there ... making a guess doesn't make a lot of sense!
Comment #9
dawehnerWell you see this information called version, so choose the 7.x-3.x-dev and try it out there. Really simple, you seem to overcomplicate things quite easy.
Comment #10
Blooniverse commentedYour patch works on/with my test site, a Drupal 7.9 installation with ~40 contrib and one custom module. My test view (works with a lot of fields and exposed filters in combination with the contrib module 'Better Exposed Filters') behaves just as it did before! Congratulations, your huge chunk of work seems to be okay.
I git-cloned 'Views 7.x-3.x-dev', then I did a regular
git apply-- even though I find it awkward, frankly said, to proceed in this manner since it creates a certain uncertainty about whether the file/files & the patch fit! Feels a bit like gambling. Is there no preciser method? Or at list there should be a [human readable] version information in the patch file, not thisindex 6c7b096..53b865e 100644in the head of the file. I don't even know what this means!Anyhow, there is still a GET query string with all kinds of arguments respectively variables/key-value-pairs, btw!
Comment #11
Blooniverse commented... should I, dare I, may I?
Comment #12
dawehnerThanks for testing the issue!
In general as you might noticed it, nothing to the end user changed, just the internal behavior of the code.
Though
the tests are a blocker.
Comment #13
Blooniverse commented... I have to admit that I didn't have enough time the last ~10months to intensely/deeply focus on things like Git or testing. If there is anything to do like testing and/or writing a 'Simple Test' test (http://drupal.org/project/simpletest), let me [respectively us] know!
I am also not too familiar yet with Drupal's Quality Assurance http://qa.drupal.org -- although I became a module co-maintainer ~12 months ago, I haven't had one minute so far to really participate. I would also like to contribute one of my lonely modules/concepts on my dev env, but same situation here! Since years I am hoping that I will have more time for such things ... and probably in about 1-2 months it might even happen, finally. Hola, again a whole text book ;)