* Remove the unused function parameter.

This commit is contained in:
wangyuting
2023-05-30 13:16:35 +08:00
parent da4a055aac
commit 9a76bc28ae
2 changed files with 6 additions and 8 deletions
+2 -2
View File
@@ -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);
+4 -6
View File
@@ -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();