src/system/RoutesModule/Form/Handler/Common/Base/AbstractEditHandler.php 1 location
|
@@ 436-440 (lines=5) @@
|
| 433 |
|
public function handleCommand($args = []) |
| 434 |
|
{ |
| 435 |
|
// build $args for BC (e.g. used by redirect handling) |
| 436 |
|
foreach ($this->templateParameters['actions'] as $action) { |
| 437 |
|
if ($this->form->get($action['id'])->isClicked()) { |
| 438 |
|
$args['commandName'] = $action['id']; |
| 439 |
|
} |
| 440 |
|
} |
| 441 |
|
|
| 442 |
|
$action = $args['commandName']; |
| 443 |
|
$isRegularAction = !in_array($action, ['delete', 'cancel']); |
src/system/RoutesModule/Form/Handler/Route/Base/AbstractEditHandler.php 1 location
|
@@ 148-152 (lines=5) @@
|
| 145 |
|
} |
| 146 |
|
|
| 147 |
|
// build $args for BC (e.g. used by redirect handling) |
| 148 |
|
foreach ($this->templateParameters['actions'] as $action) { |
| 149 |
|
if ($this->form->get($action['id'])->isClicked()) { |
| 150 |
|
$args['commandName'] = $action['id']; |
| 151 |
|
} |
| 152 |
|
} |
| 153 |
|
|
| 154 |
|
return new RedirectResponse($this->getRedirectUrl($args), 302); |
| 155 |
|
} |