Merge branch 'sprint/180_xieqiyu_46520' into 'sprint/180'
Sprint/180 xieqiyu 46520 See merge request easycorp/zentaopms!1228
This commit is contained in:
@@ -198,7 +198,7 @@ class execution extends control
|
||||
setcookie('executionTaskOrder', $orderBy, 0, $this->config->webRoot, '', false, true);
|
||||
|
||||
/* Append id for secend sort. */
|
||||
$sort = $this->loadModel('common')->appendOrder($orderBy);
|
||||
$sort = common::appendOrder($orderBy);
|
||||
|
||||
/* Header and position. */
|
||||
$this->view->title = $execution->name . $this->lang->colon . $this->lang->execution->task;
|
||||
@@ -291,7 +291,7 @@ class execution extends control
|
||||
/* Get tasks and group them. */
|
||||
if(empty($groupBy))$groupBy = 'story';
|
||||
if(($groupBy == 'story') and ($execution->type == 'ops'))$groupBy = 'status';
|
||||
$sort = $this->loadModel('common')->appendOrder($groupBy);
|
||||
$sort = common::appendOrder($groupBy);
|
||||
$tasks = $this->loadModel('task')->getExecutionTasks($executionID, $productID = 0, $status = 'all', $modules = 0, $sort);
|
||||
$groupBy = str_replace('`', '', $groupBy);
|
||||
$taskLang = $this->lang->task;
|
||||
@@ -753,7 +753,7 @@ class execution extends control
|
||||
setcookie('executionStoryOrder', $orderBy, 0, $this->config->webRoot, '', false, true);
|
||||
|
||||
/* Append id for secend sort. */
|
||||
$sort = $this->loadModel('common')->appendOrder($orderBy);
|
||||
$sort = common::appendOrder($orderBy);
|
||||
|
||||
$queryID = ($type == 'bysearch') ? $param : 0;
|
||||
$execution = $this->commonAction($executionID);
|
||||
@@ -922,7 +922,7 @@ class execution extends control
|
||||
$this->app->loadClass('pager', $static = true);
|
||||
if($this->app->getViewType() == 'xhtml') $recPerPage = 10;
|
||||
$pager = new pager($recTotal, $recPerPage, $pageID);
|
||||
$sort = $this->loadModel('common')->appendOrder($orderBy);
|
||||
$sort = common::appendOrder($orderBy);
|
||||
$bugs = $this->bug->getExecutionBugs($executionID, $productID, $build, $type, $param, $sort, '', $pager);
|
||||
$bugs = $this->bug->checkDelayedBugs($bugs);
|
||||
$users = $this->user->getPairs('noletter');
|
||||
@@ -2777,7 +2777,7 @@ class execution extends control
|
||||
|
||||
/* Append id for secend sort. */
|
||||
$orderBy = $direction == 'next' ? 'date_desc' : 'date_asc';
|
||||
$sort = $this->loadModel('common')->appendOrder($orderBy);
|
||||
$sort = common::appendOrder($orderBy);
|
||||
|
||||
/* Set the menu. If the executionID = 0, use the indexMenu instead. */
|
||||
$this->execution->setMenu($executionID);
|
||||
|
||||
Reference in New Issue
Block a user