From 67874f0e5325584f5e44a2bce28ef643f3dd462d Mon Sep 17 00:00:00 2001 From: Dmitry Dulepov Date: Thu, 16 Jan 2020 18:07:52 +0300 Subject: [PATCH] [FEATURE] Fix #4: automatically use submitted action for the form --- ext_localconf.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ext_localconf.php b/ext_localconf.php index 13a07c7..2a44aab 100644 --- a/ext_localconf.php +++ b/ext_localconf.php @@ -8,7 +8,8 @@ $vars = \TYPO3\CMS\Core\Utility\GeneralUtility::_POST('tx_news_pi1'); if (isset($vars['search']) && is_array($vars['search'])) { - $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['extbase']['extensions']['News']['plugins']['Pi1']['controllers']['News']['nonCacheableActions'][] = 'list'; + $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['extbase']['extensions']['News']['plugins']['Pi1']['controllers']['News']['nonCacheableActions'][] = + $vars['__referrer']['@action'] ?: 'list'; } $GLOBALS['TYPO3_CONF_VARS']['EXT']['news']['classes']['Domain/Repository/CategoryRepository'][] = $_EXTKEY;