* finish the task #620.

This commit is contained in:
shiyangyangwork@yahoo.cn
2011-11-18 07:39:23 +00:00
parent 901bf26448
commit 0f39d0dfcd
4 changed files with 5 additions and 3 deletions
+1
View File
@@ -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';
+1
View File
@@ -11,6 +11,7 @@
*/
$lang->story->browse = "需求列表";
$lang->story->create = "新增需求";
$lang->story->createCase = "创建用例";
$lang->story->batchCreate = "批量添加";
$lang->story->change = "变更";
$lang->story->changed = '需求变更';
+2 -1
View File
@@ -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=&param=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');
}
+1 -2
View File
@@ -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 = '';