Bug #16776
closedpi_list_browseresults shows 'Next' link when no results
0%
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)
Updated by Michael Stucki almost 18 years ago
Meanwhile I am trying to reproduce this, but can't. Can you help me, please?
Updated by Artem Matevosyan over 17 years ago
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
Updated by Artem Matevosyan over 17 years ago
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)
Updated by Alexander Opitz over 11 years ago
- 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)?
Updated by Alexander Opitz about 11 years ago
- Status changed from Needs Feedback to Closed
No feedback for over 90 days.