From fa00ebf9f5abca79e53f69fc244b0677f097ca3e Mon Sep 17 00:00:00 2001 From: hufangzhou Date: Sat, 8 Oct 2022 01:05:13 +0000 Subject: [PATCH] * Fix bug #28265. --- module/release/control.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/module/release/control.php b/module/release/control.php index 4bc2e24adf..703873896b 100644 --- a/module/release/control.php +++ b/module/release/control.php @@ -245,6 +245,14 @@ class release extends control $this->view->storyPager = $storyPager; $this->view->bugPager = $bugPager; $this->view->leftBugPager = $leftBugPager; + + if($this->app->getViewType() == 'json') + { + unset($this->view->storyPager); + unset($this->view->bugPager); + unset($this->view->leftBugPager); + } + $this->display(); }