Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions Classes/Controller/SelectController.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,16 @@ public function indexAction()
{
$selectedRecordIds = $this->selectSettingsService->getPreselectedRecords();

if(empty($selectedRecordIds))
if(empty($selectedRecordIds)) {
$selectedRecordIds = [0=>0];

$this->selectSessionService->setSelectedRecords($selectedRecordIds);

// We redirect to the current page in order to reload the selection and records
// with the current values (this is mainly for the possibility, that the
// display-records plugin is above the selection plugin
$this->_redirectToPid();
$this->selectSessionService->setSelectedRecords($selectedRecordIds);
} else {
$this->selectSessionService->setSelectedRecords($selectedRecordIds);
// We redirect to the current page in order to reload the selection and records
// with the current values (this is mainly for the possibility, that the
// display-records plugin is above the selection plugin
$this->_redirectToPid();
}
}

foreach($selectedRecords as $_record)
Expand Down