openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit ec5d93f60b4d00684bbef5f554c8ed58839a56d1
parent 265da1e4d075617393229c39b2a953ddc9fc6c1a
Author: Jan Dankert <devnull@localhost>
Date:   Tue, 25 Sep 2018 21:38:08 +0200

Der direkte Start eine Action über die Browser-URL funktioniert wieder.

Diffstat:
modules/cms-ui/action/IndexAction.class.php | 14+++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)

diff --git a/modules/cms-ui/action/IndexAction.class.php b/modules/cms-ui/action/IndexAction.class.php @@ -134,9 +134,8 @@ class IndexAction extends Action $userIsLoggedIn = is_object($user); // Welche Aktion soll ausgeführt werden? - $action = $this->getRequestVar( REQ_PARAM_ACTION ); - $id = $this->getRequestId(); - + $action = ''; + $id = 0; $this->updateStartAction( $action, $id ); $this->setTemplateVar('action',$action); @@ -792,6 +791,15 @@ class IndexAction extends Action } + // Die Action im originalen Request hat Priorität. + if ( isset($_GET[ REQ_PARAM_ACTION ] ) ) + { + $action = $_GET[ REQ_PARAM_ACTION ]; + $id = $_GET[ REQ_PARAM_ID ]; + return; + } + + // Das zuletzt geänderte Objekt benutzen. if ( config('login','start','start_lastchanged_object') ) {