* finish the task #620.
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
*/
|
||||
$lang->story->browse = "Browse";
|
||||
$lang->story->create = "Create";
|
||||
$lang->story->createCase = "Create case";
|
||||
$lang->story->batchCreate = "Batch create";
|
||||
$lang->story->change = "Change";
|
||||
$lang->story->changed = 'Changed';
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
*/
|
||||
$lang->story->browse = "需求列表";
|
||||
$lang->story->create = "新增需求";
|
||||
$lang->story->createCase = "创建用例";
|
||||
$lang->story->batchCreate = "批量添加";
|
||||
$lang->story->change = "变更";
|
||||
$lang->story->changed = '需求变更';
|
||||
|
||||
@@ -22,7 +22,8 @@
|
||||
if(!(($story->status == 'draft' or $story->status == 'changed') and common::printLink('story', 'review', "storyID=$story->id", $lang->story->review))) echo $lang->story->review . ' ';
|
||||
if(!($story->status != 'closed' and common::printLink('story', 'close', "storyID=$story->id", $lang->story->close))) echo $lang->story->close . ' ';
|
||||
if(!($story->status == 'closed' and $story->closedReason == 'postponed' and common::printLink('story', 'activate', "storyID=$story->id", $lang->story->activate))) echo $lang->story->activate . ' ';
|
||||
if(!common::printLink('story', 'edit', "storyID=$story->id", $lang->edit)) echo $lang->edit . ' ';
|
||||
if(!common::printLink('story', 'edit', "storyID=$story->id", $lang->edit)) echo $lang->edit . ' ';
|
||||
if(!common::printLink('testcase', 'create', "productID=$story->product&moduleID=0&from=¶m=0&storyID=$story->id", $lang->story->createCase)) echo $lang->story->createCase . ' ';
|
||||
common::printLink('story', 'create', "productID=$story->product&moduleID=$story->module&storyID=$story->id", $lang->copy);
|
||||
common::printLink('story', 'delete', "storyID=$story->id", $lang->delete, 'hiddenwin');
|
||||
}
|
||||
|
||||
@@ -160,7 +160,7 @@ class testcase extends control
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
public function create($productID, $moduleID = 0, $from = '', $param = 0)
|
||||
public function create($productID, $moduleID = 0, $from = '', $param = 0, $storyID = 0)
|
||||
{
|
||||
$testcaseID = $from == 'testcase' ? $param : 0;
|
||||
$bugID = $from == 'bug' ? $param : 0;
|
||||
@@ -187,7 +187,6 @@ class testcase extends control
|
||||
$type = 'feature';
|
||||
$stage = '';
|
||||
$pri = 0;
|
||||
$storyID = 0;
|
||||
$title = '';
|
||||
$precondition = '';
|
||||
$keywords = '';
|
||||
|
||||
Reference in New Issue
Block a user