diff --git a/module/bug/control.php b/module/bug/control.php index 7270064887..d6347982e3 100755 --- a/module/bug/control.php +++ b/module/bug/control.php @@ -127,7 +127,7 @@ class bug extends control $executions = $this->loadModel('execution')->getPairs($this->projectID, 'all', 'empty|withdelete|hideMultiple'); $bugs = $this->bugZen->getBrowseBugs($product->id, $branch, $browseType, array_keys($executions), $moduleID, $queryID, $realOrderBy, $pager); - $this->bugZen->buildBrowseView($bugs, $product, $branch, $browseType, $param, $moduleID, $executions, $orderBy, $pager); + $this->bugZen->buildBrowseView($bugs, $product, $branch, $browseType, $moduleID, $executions, $orderBy, $pager); } /** @@ -139,7 +139,7 @@ class bug extends control * @access public * @return void */ - public function view(int $bugID, string $from = 'bug') + public function view(int $bugID) { /* Judge bug exits or not. */ $bug = $this->bug->getById($bugID, true); diff --git a/module/bug/zen.php b/module/bug/zen.php index 49b4b5452c..d9d5c3ccce 100644 --- a/module/bug/zen.php +++ b/module/bug/zen.php @@ -948,7 +948,6 @@ class bugZen extends bug * @param object $product * @param string $branch * @param string $browseType - * @param int $param * @param int $moduleID * @param array $executions * @param string $orderBy @@ -956,7 +955,7 @@ class bugZen extends bug * @access protected * @return void */ - protected function buildBrowseView(array $bugs, object $product, string $branch, string $browseType, int $param, int $moduleID, array $executions, string $orderBy, object $pager): void + protected function buildBrowseView(array $bugs, object $product, string $branch, string $browseType, int $moduleID, array $executions, string $orderBy, object $pager): void { $this->loadModel('datatable'); @@ -1166,13 +1165,12 @@ class bugZen extends bug * 为批量创建bug构造数据。 * Build bugs for the batch creation. * - * @param int $productID - * @param string $branch - * @param array|false $bugImagesFile + * @param int $productID + * @param string $branch * @access protected * @return array */ - protected function buildBugsForBatchCreate(int $productID, string $branch, array|false $bugImagesFile): array + protected function buildBugsForBatchCreate(int $productID, string $branch): array { $bugs = form::batchData($this->config->bug->form->batchCreate)->get();