diff --git a/module/project/control.php b/module/project/control.php
index 847c7e49b0..392bb5fafb 100644
--- a/module/project/control.php
+++ b/module/project/control.php
@@ -295,7 +295,7 @@ class project extends control
* @access public
* @return void
*/
- public function story($projectID = 0)
+ public function story($projectID = 0, $orderBy = 'status_asc,id_desc')
{
/* Load these models. */
$this->loadModel('story');
@@ -313,7 +313,7 @@ class project extends control
$position[] = $this->lang->project->story;
/* The pager. */
- $stories = $this->story->getProjectStories($projectID);
+ $stories = $this->story->getProjectStories($projectID,$orderBy);
$storyTasks = $this->task->getStoryTaskCounts(array_keys($stories), $projectID);
$users = $this->user->getPairs('noletter');
@@ -321,6 +321,7 @@ class project extends control
$this->view->header = $header;
$this->view->position = $position;
$this->view->stories = $stories;
+ $this->view->orderBy = $orderBy;
$this->view->storyTasks = $storyTasks;
$this->view->tabID = 'story';
$this->view->users = $users;
diff --git a/module/project/view/bug.html.php b/module/project/view/bug.html.php
index 9fc4e7611b..c7e8c60d73 100644
--- a/module/project/view/bug.html.php
+++ b/module/project/view/bug.html.php
@@ -20,13 +20,13 @@
id}&orderBy=%s&recTotal={$pager->recTotal}&recPerPage={$pager->recPerPage}"; ?>
- | idAB);?> |
- bug->severityAB);?> |
- priAB);?> |
- bug->title);?> |
- openedByAB);?> |
- assignedToAB);?> |
- bug->resolvedBy);?> |
+ idAB);?> |
+ bug->severityAB);?> |
+ priAB);?> |
+ bug->title);?> |
+ openedByAB);?> |
+ assignedToAB);?> |
+ bug->resolvedBy);?> |
bug->resolutionAB);?> |
actions;?> |
diff --git a/module/project/view/story.html.php b/module/project/view/story.html.php
index fba66dd752..a7ddb50f13 100644
--- a/module/project/view/story.html.php
+++ b/module/project/view/story.html.php
@@ -11,7 +11,7 @@
*/
?>
-
+
project->story;?>
@@ -21,16 +21,17 @@
- | idAB;?> |
- priAB;?> |
- story->title;?> |
- openedByAB;?> |
- assignedToAB;?> |
- story->estimateAB;?> |
- statusAB;?> |
- story->stageAB;?> |
- story->taskCount;?> |
- actions;?> |
+ id}&orderBy=%s"; ?>
+ idAB);?> |
+ priAB);?> |
+ story->title);?> |
+ openedByAB);?> |
+ assignedToAB);?> |
+ story->estimateAB);?> |
+ statusAB);?> |
+ story->stageAB);?> |
+ story->taskCount);?> |
+ actions);?> |
diff --git a/module/project/view/task.html.php b/module/project/view/task.html.php
index b997485020..e9133fd855 100644
--- a/module/project/view/task.html.php
+++ b/module/project/view/task.html.php
@@ -16,6 +16,9 @@
'>
diff --git a/module/story/model.php b/module/story/model.php
index 75779555ae..c47d74c425 100644
--- a/module/story/model.php
+++ b/module/story/model.php
@@ -510,13 +510,13 @@ class storyModel extends model
* @access public
* @return array
*/
- public function getProjectStories($projectID = 0)
+ public function getProjectStories($projectID = 0, $orderBy = 'status_asc,id_desc')
{
return $this->dao->select('t1.*, t2.*')->from(TABLE_PROJECTSTORY)->alias('t1')
->leftJoin(TABLE_STORY)->alias('t2')->on('t1.story = t2.id')
->where('t1.project')->eq((int)$projectID)
->andWhere('t2.deleted')->eq(0)
- ->orderBy('t2.pri')
+ ->orderBy($orderBy)
->fetchAll('id');
}
diff --git a/module/testcase/view/browse.html.php b/module/testcase/view/browse.html.php
index dd8da2ca96..860ae36279 100644
--- a/module/testcase/view/browse.html.php
+++ b/module/testcase/view/browse.html.php
@@ -28,6 +28,13 @@ var moduleID = '';
echo "{$lang->testcase->bySearch} ";
?>
+
exportCSV, $lang->setFileName);?>
testcase->create); ?>
@@ -37,7 +44,7 @@ var moduleID = '';