Bug #16776
closed
pi_list_browseresults shows 'Next' link when no results
Added by Artem Matevosyan almost 18 years ago.
Updated about 11 years ago.
Description
pi_list_browseresults shows 'Next' link when no results
fix:
File typo3/sysext/cms/tslib/class.tslib_pibase.php
Line 559
if ($pointer==$totalPages-1) { // Link to next page
replace with
if ($pointer==$totalPages-1 || !$totalPages) { // Link to next page
(issue imported from #M4631)
Meanwhile I am trying to reproduce this, but can't. Can you help me, please?
I dont think so. Sorry. I've discovered this issue while trying to use pagebrowser with my own specific extension.
Though I belive such a check, wont be out of place.
|| !$totalPages
Ok I figured it out.
This is content of plugin's 'internal' var ($this->internal)
res_count 0
results_at_a_time 4
maxPages 10
currentRow
EMPTY!
currentTable
amflexcat_pid_list 4
dontLinkActivePage 1
showFirstLast 1
showRange 0
pagefloat CENTER
I suppose it the "res_count = 0".
The result is
Begin Back Next End
"Next" is the only link.
Now the line in pibase is 546 (typo3 v.4.1.1)
- Status changed from Accepted to Needs Feedback
- Target version deleted (
0)
- PHP Version deleted (
5)
The issue is very old, does this issue exists in newer versions of TYPO3 CMS (4.5 or 6.1)?
- Status changed from Needs Feedback to Closed
No feedback for over 90 days.
Also available in: Atom
PDF