From 82a93150271591943dbd4f82e4777975c0b16582 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E5=BB=B6=E4=B9=89?= Date: Fri, 9 Sep 2022 10:13:56 +0800 Subject: [PATCH 1/2] * Fix bug #27158. --- api/v1/entries/user.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/api/v1/entries/user.php b/api/v1/entries/user.php index 8940d9ee05..8e5d696a2b 100644 --- a/api/v1/entries/user.php +++ b/api/v1/entries/user.php @@ -196,6 +196,8 @@ class userEntry extends Entry if(!common::hasPriv('my', 'work')) break; $this->config->openMethods[] = 'my.task'; + global $app; + $app->rawMethod = 'work'; $control = $this->loadController('my', 'task'); $control->task($this->param('type', 'assignedTo'), 0, $this->param('order', 'id_desc'), $this->param('total', 0), $this->param('limit', 5), $this->param('page', 1)); $data = $this->getData(); @@ -212,6 +214,8 @@ class userEntry extends Entry if(!common::hasPriv('my', 'work')) break; $this->config->openMethods[] = 'my.bug'; + global $app; + $app->rawMethod = 'work'; $control = $this->loadController('my', 'bug'); $control->bug($this->param('type', 'assignedTo'), 0, $this->param('order', 'id_desc'), $this->param('total', 0), $this->param('limit', 5), $this->param('page', 1)); $data = $this->getData(); @@ -269,6 +273,8 @@ class userEntry extends Entry if(!common::hasPriv('my', 'work')) break; $this->config->openMethods[] = 'my.story'; + global $app; + $app->rawMethod = 'work'; $control = $this->loadController('my', 'story'); $control->story($this->param('type', 'assignedTo'), 0, $this->param('order', 'id_desc'), $this->param('total', 0), $this->param('limit', 5), $this->param('page', 1)); $data = $this->getData(); @@ -293,6 +299,8 @@ class userEntry extends Entry if($this->config->edition == 'max') { + global $app; + $app->rawMethod = 'work'; $this->config->openMethods[] = 'my.issue'; $control = $this->loadController('my', 'issue'); $control->issue('createdBy', 0, 'id_desc', 0, $this->param('limit', 5), 1); @@ -311,6 +319,8 @@ class userEntry extends Entry if($this->config->edition == 'max') { + global $app; + $app->rawMethod = 'work'; $this->config->openMethods[] = 'my.risk'; $control = $this->loadController('my', 'risk'); $control->risk('assignedTo', 0, 'id_desc', 0, $this->param('limit', 5), 1); @@ -329,6 +339,8 @@ class userEntry extends Entry if($this->config->edition == 'max') { + global $app; + $app->rawMethod = 'work'; $this->config->openMethods[] = 'my.myMeeting'; $control = $this->loadController('my', 'myMeeting'); $control->myMeeting('futureMeeting', '', 'id_desc', 0, $this->param('limit', 5), 1); From f8fdeafb3aefc4e8c36e6f1b7abf7c54f56e786e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E5=BB=B6=E4=B9=89?= Date: Fri, 9 Sep 2022 11:06:56 +0800 Subject: [PATCH 2/2] * Fix bug #27150. --- api/v1/entries/testcases.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/v1/entries/testcases.php b/api/v1/entries/testcases.php index 11ed761d97..5facb8ce38 100644 --- a/api/v1/entries/testcases.php +++ b/api/v1/entries/testcases.php @@ -26,7 +26,7 @@ class testcasesEntry extends entry $this->app->cookie->caseModule = 0; $this->app->cookie->caseSuite = 0; - $type = 'all'; + $type = $this->param('status', 'all'); $param = 0; $moduleID = $this->param('module', 0); if($moduleID)