Project

General

Profile

Actions

Bug #53763

closed

AbstractRecordList doesn't check if $this->script already contains a "?"

Added by Clément MICHELET about 11 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Could have
Assignee:
-
Category:
Backend API
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
Tags:
Complexity:
easy
Is Regression:
No
Sprint Focus:

Description

Checked on 6.1.5 (and 4.5.29)

I've created a class which inherit from AbstractRecordList which doesn't override listUrl.

public function listURL($altId = '') {
    return $this->script . '?id=' . (strcmp($altId, '') ? $altId : $this->id);
}

I define the script with "\TYPO3\CMS\Backend\Utility\BackendUtility::getModuleUrl('my_identifier');".

The pagination URL is something like "mod.php?M=my_identifier?id=&pointer=10". The link is broken because it must start with a "&" instead of a "?" in the URL.

To solve that, I have to override listUrl method.

AbstractRecordList::listUrl method could take care of the script content to avoid this.

Actions

Also available in: Atom PDF