This commit is contained in:
zhouxudong
2022-03-30 09:35:59 +08:00
parent ecf749b7da
commit 6b9eddc355
2 changed files with 6 additions and 13 deletions
+5 -5
View File
@@ -2145,20 +2145,20 @@ class execution extends control
$this->app->loadLang('story');
$this->app->loadLang('task');
$this->app->loadLang('bug');
$this->loadModel('kanban');
/* Compatibility IE8. */
if(strpos($this->server->http_user_agent, 'MSIE 8.0') !== false) header("X-UA-Compatible: IE=EmulateIE7");
if($execution->lifetime == 'ops')
{
$browseType = 'task';
unset($this->lang->kanban->type['story']);
unset($this->lang->kanban->type['bug']);
$kanbanGroup = $this->loadModel('kanban')->getExecutionKanban($executionID, 'task', $groupBy);
}
else
{
$kanbanGroup = $this->loadModel('kanban')->getExecutionKanban($executionID, $browseType, $groupBy);
unset($this->lang->kanban->type['all']);
}
$kanbanGroup = $this->kanban->getExecutionKanban($executionID, $browseType, $groupBy);
if(empty($kanbanGroup))
{
$this->kanban->createExecutionLane($executionID, $browseType, $groupBy);
+1 -8
View File
@@ -13,14 +13,7 @@
<div id='mainMenu' class='clearfix'>
<div class='btn-toolbar pull-left'>
<div class="input-control space c-type">
<?php
if($execution->lifetime == 'ops')
{
unset($lang->kanban->type['story']);
unset($lang->kanban->type['bug']);
}
echo html::select('type', $lang->kanban->type, $browseType, 'class="form-control chosen" data-max_drop_width="215"');
?>
<?php echo html::select('type', $lang->kanban->type, $browseType, 'class="form-control chosen" data-max_drop_width="215"');?>
</div>
<?php if($browseType != 'all'):?>
<div class="input-control space c-group">