-
+
lang->colon;?>
task->batchCreateChildren;?>
diff --git a/module/task/view/view.html.php b/module/task/view/view.html.php
index dd6638d532..5d811ce460 100644
--- a/module/task/view/view.html.php
+++ b/module/task/view/view.html.php
@@ -152,6 +152,7 @@
";?>
deleted):?>
team) or empty($task->children)) common::printIcon('task', 'batchCreate', "project=$task->project&storyID=$task->story&moduleID=$task->module&taskID=$task->id", $task, 'button', 'treemap-alt', '', '', '', "title='{$lang->task->children}'", $lang->task->children);
common::printIcon('task', 'assignTo', "projectID=$task->project&taskID=$task->id", $task, 'button', '', '', 'iframe', true, '', empty($task->team) ? $lang->task->assignTo : $lang->task->transfer);
common::printIcon('task', 'start', "taskID=$task->id", $task, 'button', '', '', 'iframe showinonlybody', true);
common::printIcon('task', 'restart', "taskID=$task->id", $task, 'button', '', '', 'iframe showinonlybody', true);
@@ -163,7 +164,6 @@
common::printIcon('task', 'cancel', "taskID=$task->id", $task, 'button', '', '', 'iframe showinonlybody', true);
if(!isonlybody()) echo "
";
- if(empty($task->team) or empty($task->children)) common::printIcon('task', 'batchCreate', "project=$task->project&storyID=$task->story&moduleID=$task->module&taskID=$task->id", $task, 'button', 'treemap-alt', '', '', '', "title='{$lang->task->children}' target='__blank'", ' ');
common::printIcon('task', 'edit', "taskID=$task->id", $task, 'button', '', '', 'showinonlybody');
common::printIcon('task', 'create', "projctID={$task->project}&storyID=0&moduleID=0&taskID=$task->id", $task, 'button', 'copy');
common::printIcon('task', 'delete', "projectID=$task->project&taskID=$task->id", $task, 'button', 'trash', 'hiddenwin');
diff --git a/module/testcase/control.php b/module/testcase/control.php
index 4ca20b8a80..c26725fe0c 100644
--- a/module/testcase/control.php
+++ b/module/testcase/control.php
@@ -807,16 +807,15 @@ class testcase extends control
* @access public
* @return void
*/
- public function delete($caseID, $runID ,$confirm = 'no')
+ public function delete($caseID, $confirm = 'no')
{
if($confirm == 'no')
{
- die(js::confirm($this->lang->testcase->confirmDelete, inlink('delete', "caseID=$caseID&runID=$runID&confirm=yes")));
+ die(js::confirm($this->lang->testcase->confirmDelete, inlink('delete', "caseID=$caseID&confirm=yes")));
}
else
{
$this->testcase->delete(TABLE_CASE, $caseID);
- $this->dao->delete()->from(TABLE_TESTRUN)->where('id')->eq($runID)->exec();
/* if ajax request, send result. */
if($this->server->ajax)
{
diff --git a/module/testcase/view/view.html.php b/module/testcase/view/view.html.php
index d06eb311b2..9067b0ff5c 100644
--- a/module/testcase/view/view.html.php
+++ b/module/testcase/view/view.html.php
@@ -117,7 +117,7 @@
common::printIcon('testcase', 'edit',"caseID=$case->id", $case);
if(!$isLibCase) common::printIcon('testcase', 'create', "productID=$case->product&branch=$case->branch&moduleID=$case->module&from=testcase¶m=$case->id", $case, 'button', 'copy');
if($isLibCase and common::hasPriv('testsuite', 'createCase')) echo html::a($this->createLink('testsuite', 'createCase', "libID=$case->lib&moduleID=$case->module¶m=$case->id", $case), "
", '', "class='btn' title='{$lang->testcase->copy}'");
- common::printIcon('testcase', 'delete', "caseID=$case->id&runID=$runID", $case, 'button', 'trash', 'hiddenwin');
+ common::printIcon('testcase', 'delete', "caseID=$case->id", $case, 'button', 'trash', 'hiddenwin');
?>
diff --git a/module/testtask/model.php b/module/testtask/model.php
index a277c34966..5e19043407 100644
--- a/module/testtask/model.php
+++ b/module/testtask/model.php
@@ -499,7 +499,15 @@ class testtaskModel extends model
*/
public function getDataOfTestTaskPerRunResult($taskID)
{
- $datas = $this->dao->select('lastRunResult AS name, COUNT(*) AS value')->from(TABLE_TESTRUN)->where('task')->eq($taskID)->groupBy('name')->orderBy('value DESC')->fetchAll('name');
+ $datas = $this->dao->select("t1.lastRunResult AS name, COUNT('t1.*') AS value")->from(TABLE_TESTRUN)->alias('t1')
+ ->leftJoin(TABLE_CASE)->alias('t2')
+ ->on('t1.case = t2.id')
+ ->where('t1.task')->eq($taskID)
+ ->andWhere('t2.deleted')->eq(0)
+ ->groupBy('name')
+ ->orderBy('value DESC')
+ ->fetchAll('name');
+
if(!$datas) return array();
foreach($datas as $result => $data) $data->name = isset($this->lang->testcase->resultList[$result])? $this->lang->testcase->resultList[$result] : $this->lang->testtask->unexecuted;
diff --git a/module/todo/css/view.css b/module/todo/css/view.css
index c304e2aaa6..b978984d1f 100644
--- a/module/todo/css/view.css
+++ b/module/todo/css/view.css
@@ -1,2 +1,2 @@
#projectModal .modal-dialog, #productModal .modal-dialog {top: auto!important; bottom: 90px;}
-.body-modal #projectModal .modal-dialog, .body-modal #productModal .modal-dialog {top: auto!important; bottom: 55px;}
\ No newline at end of file
+.body-modal #projectModal .modal-dialog, .body-modal #productModal .modal-dialog {top: auto!important; bottom: 55px;}
diff --git a/module/todo/view/view.html.php b/module/todo/view/view.html.php
index c2f95e8ca6..65cf7e84e2 100644
--- a/module/todo/view/view.html.php
+++ b/module/todo/view/view.html.php
@@ -243,8 +243,6 @@
todo->thisIsPrivate;?>