* Remove useless function.

* Rename forceNotReview to needReview.
This commit is contained in:
daitingting
2023-09-01 03:25:55 +00:00
parent 6514d6e830
commit acddaed1d0
4 changed files with 13 additions and 25 deletions
+5 -17
View File
@@ -273,10 +273,11 @@ class testcase extends control
$extras = str_replace(array(',', ' '), array('&', ''), $extras);
parse_str($extras, $output);
$this->view->title = $this->products[$productID] . $this->lang->colon . $this->lang->testcase->create;
$this->view->productID = $productID;
$this->view->users = $this->user->getPairs('noletter|noclosed|nodeleted');
$this->view->gobackLink = isset($output['from']) && $output['from'] == 'global' ? $this->createLink('testcase', 'browse', "productID=$productID") : '';
$this->view->title = $this->products[$productID] . $this->lang->colon . $this->lang->testcase->create;
$this->view->productID = $productID;
$this->view->users = $this->user->getPairs('noletter|noclosed|nodeleted');
$this->view->gobackLink = isset($output['from']) && $output['from'] == 'global' ? $this->createLink('testcase', 'browse', "productID=$productID") : '';
$this->view->needReview = $this->testcase->forceNotReview() == true ? 0 : 1;
$this->display();
}
@@ -1316,19 +1317,6 @@ class testcase extends control
$this->display();
}
/**
* Export case getModuleByStory
*
* @params int $storyID
* @return void
*/
public function ajaxGetStoryModule($storyID)
{
$story = $this->dao->select('module')->from(TABLE_STORY)->where('id')->eq($storyID)->fetch();
$moduleID = !empty($story) ? $story->module : 0;
echo json_encode(array('moduleID'=> $moduleID));
}
/**
* Get status by ajax.
*