From 05070a7608a46c6750523048a53a052e0f3a6561 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96sterreicher?= Date: Thu, 25 Sep 2014 06:52:24 +0000 Subject: [PATCH] =?UTF-8?q?Planner:=20Subprojekte=20aus=20Mantis=20sind=20?= =?UTF-8?q?jetzt=20im=20Planner=20w=C3=A4hlbar?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/mantis.class.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/include/mantis.class.php b/include/mantis.class.php index 98aba2dff..02e105052 100755 --- a/include/mantis.class.php +++ b/include/mantis.class.php @@ -265,6 +265,20 @@ class mantis extends basis_db $obj->issue_project->id = $row->id; $this->result[] = $obj; + + if(isset($row->subprojects)) + { + foreach($row->subprojects as $row_sub) + { + $obj = new mantis(); + $obj->issue_project = new stdclass(); + $obj->issue_project->name = $row_sub->name; + $obj->issue_project->id = $row_sub->id; + + $this->result[] = $obj; + + } + } } return true; }