commit 98198b3f908381e2eebcfcbc93b0bb459f25173b parent 5dfd68dd915a60fcb4e6593d36b3291facf25b1e Author: Jan Dankert <devnull@localhost> Date: Mon, 6 Nov 2017 22:12:25 +0100 Auch die Root-Object-Id als Projekteigenschaft ausgeben, um diese über die API verfügbar zu machen. Diffstat:
action/ProjectAction.class.php | | | 6 | +++--- |
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/action/ProjectAction.class.php b/action/ProjectAction.class.php @@ -40,7 +40,6 @@ class ProjectAction extends Action function editPost() { - sleep(2); if ( $this->getRequestVar('name') != '') { $this->project->name = $this->getRequestVar('name' ,OR_FILTER_ALPHANUM); @@ -118,8 +117,9 @@ class ProjectAction extends Action */ function editView() { - // Projekt laden - $this->setTemplateVars( $this->project->getProperties() ); + $extraProperties = array('rootobjectid'=>$this->project->getRootObjectId()); + + $this->setTemplateVars( $this->project->getProperties() + $extraProperties ); }