Project

General

Profile

Actions

Bug #53763

closed

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

Added by Clément MICHELET over 10 years ago. Updated about 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 #1

Updated by Markus Klein over 10 years ago

  • Status changed from New to Accepted
  • TYPO3 Version changed from 6.1 to 4.5

Can you please push a patch to Gerrit? Target will be 6.2, 6.1, 6.0, 4.7, 4.5

Actions #2

Updated by Markus Klein over 10 years ago

  • Subject changed from AbstractRecordList doesn't check if $this->script already contain a "?" to AbstractRecordList doesn't check if $this->script already contains a "?"
Actions #3

Updated by Mathias Schreiber over 9 years ago

  • Target version set to 7.4 (Backend)
Actions #4

Updated by Michael Oehlhof about 9 years ago

This item can be closed because it is already fixed with item 56470.

Actions #5

Updated by Riccardo De Contardi about 9 years ago

  • Status changed from Accepted to Closed
Actions

Also available in: Atom PDF