diff --git a/module/story/view/view.html.php b/module/story/view/view.html.php index f351d0f497..c9bd8578fa 100644 --- a/module/story/view/view.html.php +++ b/module/story/view/view.html.php @@ -45,7 +45,23 @@ common::printIcon('story', 'review', "storyID=$story->id", $story); common::printIcon('story', 'close', "storyID=$story->id", $story, 'button', '', '', 'iframe text-danger', true); common::printIcon('story', 'activate', "storyID=$story->id", $story, 'button', '', '', 'iframe text-success', true); - common::printIcon('story', 'createCase', "productID=$story->product&branch=$story->branch&moduleID=0&from=¶m=0&storyID=$story->id", '', 'button', 'sitemap'); + + $this->app->loadLang('testcase'); + echo "
"; + echo ""; + echo ""; + echo "
"; + if($from == 'project') common::printIcon('task', 'create', "project=$param&storyID=$story->id&moduleID=$story->module", '', 'button', 'smile'); echo ''; diff --git a/module/testcase/control.php b/module/testcase/control.php index 498b98de9f..77afa96394 100644 --- a/module/testcase/control.php +++ b/module/testcase/control.php @@ -344,6 +344,7 @@ class testcase extends control { $caseID = $this->testcase->batchCreate($productID, $branch, $storyID); if(dao::isError()) die(js::error(dao::getError())); + if(isonlybody()) die(js::closeModal('parent.parent', 'this')); die(js::locate($this->createLink('testcase', 'browse', "productID=$productID&branch=$branch&browseType=byModule¶m=$moduleID"), 'parent')); } if(empty($this->products)) $this->locate($this->createLink('product', 'create')); diff --git a/module/testcase/view/batchcreate.html.php b/module/testcase/view/batchcreate.html.php index 7ac3518fbc..a976be483b 100644 --- a/module/testcase/view/batchcreate.html.php +++ b/module/testcase/view/batchcreate.html.php @@ -43,10 +43,10 @@ foreach(explode(',', $showFields) as $field) idAB;?> - '>testcase->module;?> - '> testcase->story;?> + '>testcase->module;?> + '> testcase->story;?> testcase->title;?> - testcase->type;?> + testcase->type;?> '> testcase->pri;?> '>testcase->precondition;?> '> testcase->keywords;?>