Closed (outdated)
Project:
Drupal core
Version:
7.x-dev
Component:
base system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
22 May 2009 at 19:34 UTC
Updated:
27 Jan 2017 at 17:52 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
foutrelis commentedUnless I'm missing something, we can simply check if $pager_last contains a smaller number than $pager_max.
Comment #2
OpenChimp commentedIt seems like the above patch has been committed, but it is not quite correct.
Instead of:
It should read: (note $pager_max+1 in the conditional)
In D6 this will be:
Comment #3
casey commentedPager in D7 has changed a lot; does the issue still exist? If not you can move this to D6.
Comment #4
szt commentedThe issue is exists, #2 solves it, i've turned into patch.
Comment #5
Désiré commentedGreat, it seems work.
But, please see the coding stnadards for operators: http://drupal.org/coding-standards#operators
And this issue needs automated tests.
Comment #6
szt commented...again with using coding standards
Comment #7
parthipanramesh commentedWorks fine. Thanks.
Comment #8
David_Rothstein commentedHaven't tested Drupal 8, but the same code exists there, so I assume it would need to be fixed there first.
Comment #9
cac2s commentedpatch for 7.26
Comment #11
cac2s commentedComment #12
cac2s commentedComment #13
cac2s commentedComment #14
cac2s commentedComment #15
cac2s commentedComment #16
mrharolda commentedWorks perfectly!
Comment #18
David_Rothstein commentedStill seeing similar code in Drupal 8, and no indication from anyone that the bug doesn't exist there.
Comment #19
cac2s commentedComment #20
cac2s commentedComment #21
mrharolda commentedThe test failed on queries, so re-testing.
Comment #23
cepinos commentedThis patch fix the problem, I tested it on Drupal 7.
Comment #25
alx_benjamin commentedIt looks like the proposed patches are for D7.
So why is this issue in D8 version?
You cannot test D7 patches against D8 and expect them to pass.
Are we not supposed to create a new issue with correct Drupal version and submit
patches with correct versions so they could be tested properly?
Correct me if I'm wrong
-------------------------------------------------
Sponsored by http://reallifedesign.co.uk/
Comment #26
alx_benjamin commentedCannot replicate in D8. So moving this to original D7 version
-------------------------------------------------
Sponsored by http://reallifedesign.co.uk/
Comment #28
szt commentedI've posted exactly the same patch in #6 and was confirmed in #7.
The issue needs the D8 fix now.
Comment #29
szt commentedComment #30
David_Rothstein commentedComment #31
szt commentedOk, I've looked after: the bug exists in D8, here is the patch for it.
I've tested, works well.
Comment #32
koence commentedEllipsis is shown indeed in D8.
Tested with and without patch.
With patch:

Without patch:

Comment #33
wim leersComment #34
wim leersSorry, I think this needs tests before it can be committed. We want to avoid this from regressing again.
You'll probably want to expand
\Drupal\system\Tests\Pager\PagerTest.Comment #35
koence commentedI'll work on the test
Comment #36
koence commentedComment #37
wim leersGreat! But we also need a test for the case where the ellipsis is expected to not yet appear.
Comment #38
koence commentedTest has been updated!
Comment #39
wim leersClever! :) Love it!
Excellent test — hope to see you around more often in the D8 core issue queue :)
Comment #42
alexpottThis needs to be public. Yes it still works with protected and I know that another method in this test is incorrectly marked as protected but we should still get this one correct.
Comment #43
wim leersOops, should've caught that. Sorry, Alex.
Comment #44
koence commentedPatch has been updated!
Comment #45
koence commentedComment #47
koence commentedComment #48
koence commentedMade a mistake with previous patch in #44.
Should be ok now.
Function changed from protected to public.
Comment #49
pjbaertLooks like this is rtbc.
Function is now public as requested in #42
Comment #50
alexpottManual testing proves this fix is correct. Nice work. Committed 88470f9 and pushed to 8.0.x. Thanks!
Comment #52
mrharolda commentedThe patch in #5 and #23 (same patch) are already reviewed and tested a log time ago, including by me ;)
Comment #54
David_Rothstein commentedThe tests need to be backported from Drupal 8 also.
Comment #55
sivaji_ganesh_jojodae commentedPatch for D7 with test.