openrat-cms

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

commit 0dd1e23f0c1e9b6e051dd7623ca571abd73d1466
parent 9bc80c89f6499f2c04570c1461af0a3f3fb5d15f
Author: Jan Dankert <devnull@localhost>
Date:   Mon, 24 Sep 2018 22:51:08 +0200

Liste von Varianten und Sprachen im Navigationsbaum korrigiert. Hier wird die InternalId benötigt. Ggf. kann das mit der Id zusammengelegt werden.

Diffstat:
modules/cms-core/action/LanguagelistAction.class.php | 6++++++
modules/cms-core/action/ModellistAction.class.php | 5+++++
modules/cms-core/action/TemplatelistAction.class.php | 5+++++
modules/util/Tree.class.php | 3+++
4 files changed, 19 insertions(+), 0 deletions(-)

diff --git a/modules/cms-core/action/LanguagelistAction.class.php b/modules/cms-core/action/LanguagelistAction.class.php @@ -50,6 +50,12 @@ class LanguagelistAction extends Action { parent::__construct(); + } + + + public function init() + { + $this->project = new Project( $this->request->getRequestId()); } diff --git a/modules/cms-core/action/ModellistAction.class.php b/modules/cms-core/action/ModellistAction.class.php @@ -44,6 +44,11 @@ class ModellistAction extends Action function __construct() { parent::__construct(); + } + + + public function init() + { $this->project = new Project( $this->request->getRequestId()); } diff --git a/modules/cms-core/action/TemplatelistAction.class.php b/modules/cms-core/action/TemplatelistAction.class.php @@ -45,6 +45,11 @@ class TemplatelistAction extends Action { parent::__construct(); + } + + + public function init() + { $this->project = new Project( $this->request->getProjectId()); } diff --git a/modules/util/Tree.class.php b/modules/util/Tree.class.php @@ -328,6 +328,7 @@ class Tree $u = new User($id); $u->load(); $treeElement->id = $u->userid; + $treeElement->internalId = $u->userid; $treeElement->text = $u->name; $treeElement->icon = 'user'; $treeElement->action = 'user'; @@ -582,6 +583,7 @@ class Tree foreach ($project->getLanguages() as $languageid => $name) { $treeElement = new TreeElement(); $treeElement->id = $languageid; + $treeElement->internalId = $languageid; $treeElement->text = $name; $treeElement->icon = 'language'; $treeElement->action = 'language'; @@ -601,6 +603,7 @@ class Tree foreach ($project->getModels() as $id => $name) { $treeElement = new TreeElement(); $treeElement->id = $id; + $treeElement->internalId = $id; $treeElement->text = $name; $treeElement->action = 'model'; $treeElement->icon = 'model';