* finish task #3672.

This commit is contained in:
wangyidong
2018-03-13 17:34:20 +08:00
parent 17c161dc74
commit 5e6d6aefe7
2 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -1335,7 +1335,8 @@ class project extends control
$this->view->position[] = $this->lang->project->kanban;
$this->view->stories = $stories;
$this->view->realnames = $this->loadModel('user')->getPairs('noletter');
$this->view->orderBy = $orderBy;
$this->view->storyOrder = $orderBy;
$this->view->orderBy = 'id_asc';
$this->view->projectID = $projectID;
$this->view->project = $project;
$this->view->type = $type;
+2 -2
View File
@@ -30,7 +30,7 @@ $account = $this->app->user->account
<div class='dropdown inline-block'>
<a data-toggle='dropdown' href='javascript:;'>
<?php if($type == 'story'):?>
<?php echo $lang->project->orderList[$orderBy]?>
<?php echo $lang->project->orderList[$storyOrder]?>
<?php else:?>
<?php echo $lang->task->$type;?>
<?php endif;?>
@@ -38,7 +38,7 @@ $account = $this->app->user->account
</a>
<ul class='dropdown-menu text-left'>
<?php foreach ($lang->project->orderList as $key => $value):?>
<li <?php echo ($type == 'story' and $orderBy == $key) ? " class='active'" : '' ?>>
<li <?php echo ($type == 'story' and $storyOrder == $key) ? " class='active'" : '' ?>>
<?php echo html::a($this->createLink('project', 'kanban', "projectID=$projectID&type=story&orderBy=$key"), $value);?>
</li>
<?php endforeach;?>