⚲
Project
General
Profile
Sign in
Home
Projects
Help
Search
:
TYPO3 Core
All Projects
TYPO3 Core
Overview
Activity
Roadmap
Issues
Repository
Download (993 Bytes)
Feature #21847
ยป RequestBuilder-patch.txt
Administrator Admin, 2009-12-12 01:17
diff -ru extbase/Classes/MVC/Web/RequestBuilder.php extbase-nodiff/Classes/MVC/Web/RequestBuilder.php
--- extbase/Classes/MVC/Web/RequestBuilder.php 2009-12-12 11:14:05.000000000 +1100
+++ extbase-nodiff/Classes/MVC/Web/RequestBuilder.php 2009-12-09 23:08:21.000000000 +1100
@@ -109,6 +109,12 @@
*/
public function build() {
$parameters = t3lib_div::_GPmerged('tx_' . strtolower($this->extensionName) . '_' . strtolower($this->pluginName));
+ // STEVER HACK - seek button clicks as action triggers using the button name prefixId[action][theAction]
+ if (is_array($parameters['action'])) {
+ foreach ($parameters['action'] as $k => $v) {
+ if (strlen($v)>0) $parameters['action']=$k;
+ }
+ }
if (is_string($parameters['controller']) && array_key_exists($parameters['controller'], $this->allowedControllerActions)) {
$controllerName = filter_var($parameters['controller'], FILTER_SANITIZE_STRING);
$allowedActions = $this->allowedControllerActions[$controllerName];
(1-1/1)
Loading...