Skip to content
Snippets Groups Projects

[FEATURE] save filters in session

Merged Kevin von Spiczak requested to merge feature_3338-saveFiltersInSession into master
2 files
+ 36
29
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -85,6 +85,7 @@ class BackendController extends ActionController {
@@ -85,6 +85,7 @@ class BackendController extends ActionController {
*
*
* @param array $filters
* @param array $filters
* @return void
* @return void
 
* @throws \TYPO3\CMS\Extbase\Persistence\Exception\InvalidQueryException
*/
*/
public function indexAction(array $filters = []): void {
public function indexAction(array $filters = []): void {
$pageUid = (int) GeneralUtility::_GP('id');
$pageUid = (int) GeneralUtility::_GP('id');
@@ -145,9 +146,6 @@ class BackendController extends ActionController {
@@ -145,9 +146,6 @@ class BackendController extends ActionController {
$this->view->assign('filters', $filters);
$this->view->assign('filters', $filters);
$this->view->assign('jobs', $jobs);
$this->view->assign('jobs', $jobs);
if (!$totalJobCount && $pageUid) {
if (!$totalJobCount && $pageUid) {
// clear previously set filters again,
// without this, the user would be stuck without filters and just the flash message
$backendUser->pushModuleData('tools_beuser/index.php/web_SgJobsBackend_filters', []);
$this->addFlashMessage(
$this->addFlashMessage(
LocalizationUtility::translate('backend.notice.noRecords', 'SgJobs'), '', FlashMessage::INFO
LocalizationUtility::translate('backend.notice.noRecords', 'SgJobs'), '', FlashMessage::INFO
);
);
Loading