diff --git a/Makefile b/Makefile index 1305157607..ea4e31d720 100644 --- a/Makefile +++ b/Makefile @@ -102,6 +102,11 @@ zentaoxx: mkdir zentaoxx/db/ cp zentaoxx/db_bak/upgradexuanxuan*.sql zentaoxx/db_bak/xuanxuan.sql zentaoxx/db/ rm -rf zentaoxx/db_bak/ + sed -i "s/\$$accountAdmin = \$$this->dao->select('account, admin')->from(TABLE_USER)->where('id')->eq(\$$userID)->fetch();/\$$accountAdmin = \$$this->dao->select('account')->from(TABLE_USER)->where('id')->eq(\$$userID)->fetch();\n\$$admins = \$$this->dao->select('admins')->from(TABLE_COMPANY)->where('id')->eq(\$$this->app->company->id)->fetch('admins');\n\$$adminArray = explode(',', \$$admins);\n\$$accountAdmin->admin = in_array(\$$accountAdmin->account, \$$adminArray) ? 'super' : '';\n/" zentaoxx/extension/xuan/im/model/chat.php + sed -i "/->on('tc.ownedBy=tu.account')/{ N ; s/type/tc.type/}" zentaoxx/extension/xuan/im/model/chat.php + sed -i "s/\$$super = \$$this->dao->select('admin')->from(TABLE_USER)->where('id')->eq(\$$userID)->fetch('admin');/\$$account = \$$this->dao->select('account')->from(TABLE_USER)->where('id')->eq(\$$userID)->fetch('account');\n\$$admins = \$$this->dao->select('admins')->from(TABLE_COMPANY)->where('id')->eq(\$$this->app->company->id)->fetch('admins');\n\$$adminArray = explode(',', \$$admins);\n\$$super = in_array(\$$account, \$$adminArray) ? 'super' : '';/g" zentaoxx/extension/xuan/im/control.php + sed -i "/foreach(\$$users as \$$user)/i \$$admins = \$$this->dao->select('admins')->from(TABLE_COMPANY)->where('id')->eq(\$$this->app->company->id)->fetch('admins');\$$adminArray = explode(',', \$$admins);" zentaoxx/extension/xuan/im/model/user.php + sed -i "/if(\!isset(\$$user->signed)) \$$user->signed = 0;/a \$$user->admin = in_array(\$$user->account, \$$adminArray) ? 'super' : '';" zentaoxx/extension/xuan/im/model/user.php sed -i 's/XXBVERSION/$(XVERSION)/g' zentaoxx/config/ext/_0_xuanxuan.php sed -i "/\$$config->xuanxuan->backend /c\\\$$config->xuanxuan->backend = 'zentao';" zentaoxx/config/ext/_0_xuanxuan.php sed -i 's/site,//' zentaoxx/extension/xuan/im/model/user.php diff --git a/config/filter.php b/config/filter.php index 39b722daec..d54e28622e 100755 --- a/config/filter.php +++ b/config/filter.php @@ -169,6 +169,7 @@ $filter->execution->export = new stdclass(); $filter->tree->browse = new stdclass(); $filter->productplan->browse = new stdclass(); $filter->kanban->space = new stdclass(); +$filter->execution->kanban = new stdclass(); $filter->index->index->get['open'] = 'reg::base64'; @@ -300,6 +301,7 @@ $filter->execution->story->cookie['storyProductParam'] = 'int'; $filter->execution->story->cookie['storyBranchParam'] = 'int'; $filter->execution->story->cookie['executionStoryOrder'] = 'code'; $filter->execution->export->cookie['checkedItem'] = 'reg::checked'; +$filter->execution->kanban->cookie['taskToOpen'] = 'int'; $filter->testcase->browse->cookie['caseModule'] = 'int'; $filter->testcase->browse->cookie['caseSuite'] = 'int'; diff --git a/db/update17.6.1.sql b/db/update17.6.1.sql new file mode 100644 index 0000000000..fe8f0c1e57 --- /dev/null +++ b/db/update17.6.1.sql @@ -0,0 +1 @@ +UPDATE `zt_workflowlabel` SET `label` = '全部' where `buildin` = 0 AND `role` = 'custom' AND `label` = '所有' AND `action` = 'browse'; diff --git a/module/bug/config.php b/module/bug/config.php index ad67ba65e3..d17bbaaa9e 100644 --- a/module/bug/config.php +++ b/module/bug/config.php @@ -188,7 +188,7 @@ $config->bug->datatable->fieldList['pri']['name'] = $lang->bug->pri; $config->bug->datatable->fieldList['confirmed']['title'] = 'confirmedAB'; $config->bug->datatable->fieldList['confirmed']['fixed'] = 'left'; -$config->bug->datatable->fieldList['confirmed']['width'] = '50'; +$config->bug->datatable->fieldList['confirmed']['width'] = '100'; $config->bug->datatable->fieldList['confirmed']['required'] = 'no'; $config->bug->datatable->fieldList['title']['title'] = 'title'; diff --git a/module/bug/css/browse.css b/module/bug/css/browse.css index 7a2518c139..55068d74be 100644 --- a/module/bug/css/browse.css +++ b/module/bug/css/browse.css @@ -2,8 +2,6 @@ .closed, .closed a {color: gray; text-decoration:line-through;} .resolved, .resolved a {color: #8EC21F; text-decoration: none;} .tree .closed, .tree .closed a {color: #003366; text-decoration: none;} -.confirm0 {color: gray;} -.confirm1 {color: green;} td.delayed {color: #fff; background: #e84e0f !important;} #bugForm .setting {height: 25px;} diff --git a/module/bug/css/m.browse.css b/module/bug/css/m.browse.css index 55fe95f277..2bade6e64b 100644 --- a/module/bug/css/m.browse.css +++ b/module/bug/css/m.browse.css @@ -1,2 +1,2 @@ -.confirm0 {color:gray; font-size:9px} -.confirm1 {color:green; font-size:9px} +.confirm0 {font-size:9px} +.confirm1 {font-size:9px} diff --git a/module/bug/lang/en.php b/module/bug/lang/en.php index 439690a04f..6b20c15b4e 100644 --- a/module/bug/lang/en.php +++ b/module/bug/lang/en.php @@ -285,8 +285,8 @@ $lang->bug->statusList['resolved'] = 'Resolved'; $lang->bug->statusList['closed'] = 'Closed'; $lang->bug->confirmedList[''] = ''; -$lang->bug->confirmedList[1] = 'Yes'; -$lang->bug->confirmedList[0] = 'No'; +$lang->bug->confirmedList[1] = 'confirmed'; +$lang->bug->confirmedList[0] = 'unconfirmed'; $lang->bug->resolutionList[''] = ''; $lang->bug->resolutionList['bydesign'] = 'As Designed'; diff --git a/module/bug/lang/fr.php b/module/bug/lang/fr.php index de0bfd7c05..ff9fd3073a 100644 --- a/module/bug/lang/fr.php +++ b/module/bug/lang/fr.php @@ -285,8 +285,8 @@ $lang->bug->statusList['resolved'] = 'Résolu'; $lang->bug->statusList['closed'] = 'Fermé'; $lang->bug->confirmedList[''] = ''; -$lang->bug->confirmedList[1] = 'Oui'; -$lang->bug->confirmedList[0] = 'Non'; +$lang->bug->confirmedList[1] = 'confirmé'; +$lang->bug->confirmedList[0] = 'non confirmé'; $lang->bug->resolutionList[''] = ''; $lang->bug->resolutionList['bydesign'] = 'Du Design'; diff --git a/module/bug/lang/vi.php b/module/bug/lang/vi.php index 2f0305172f..b21a1eed16 100644 --- a/module/bug/lang/vi.php +++ b/module/bug/lang/vi.php @@ -265,8 +265,8 @@ $lang->bug->statusList['active'] = 'Kích hoạt'; $lang->bug->statusList['resolved'] = 'Đã giải quyết'; $lang->bug->statusList['closed'] = 'Đã đóng'; -$lang->bug->confirmedList[1] = 'Có'; -$lang->bug->confirmedList[0] = 'Không'; +$lang->bug->confirmedList[1] = 'đã xác nhận'; +$lang->bug->confirmedList[0] = 'chưa được xác nhận'; $lang->bug->resolutionList[''] = ''; $lang->bug->resolutionList['bydesign'] = 'Như thiết kế'; diff --git a/module/bug/lang/zh-cn.php b/module/bug/lang/zh-cn.php index 9829eb8ee4..e437a9bfb5 100644 --- a/module/bug/lang/zh-cn.php +++ b/module/bug/lang/zh-cn.php @@ -285,8 +285,8 @@ $lang->bug->statusList['resolved'] = '已解决'; $lang->bug->statusList['closed'] = '已关闭'; $lang->bug->confirmedList[''] = ''; -$lang->bug->confirmedList[1] = '是'; -$lang->bug->confirmedList[0] = '否'; +$lang->bug->confirmedList[1] = '已确认'; +$lang->bug->confirmedList[0] = '未确认'; $lang->bug->resolutionList[''] = ''; $lang->bug->resolutionList['bydesign'] = '设计如此'; diff --git a/module/bug/lang/zh-tw.php b/module/bug/lang/zh-tw.php index 9ac6af81b9..98fbcaaec9 100644 --- a/module/bug/lang/zh-tw.php +++ b/module/bug/lang/zh-tw.php @@ -283,8 +283,8 @@ $lang->bug->statusList['resolved'] = '已解決'; $lang->bug->statusList['closed'] = '已關閉'; $lang->bug->confirmedList[''] = ''; -$lang->bug->confirmedList[1] = '是'; -$lang->bug->confirmedList[0] = '否'; +$lang->bug->confirmedList[1] = '已確認'; +$lang->bug->confirmedList[0] = '未確認'; $lang->bug->resolutionList[''] = ''; $lang->bug->resolutionList['bydesign'] = '設計如此'; diff --git a/module/execution/control.php b/module/execution/control.php index dea8b3e57b..560ed521d5 100644 --- a/module/execution/control.php +++ b/module/execution/control.php @@ -2365,10 +2365,10 @@ class execution extends control /** * Kanban. * - * @param int $executionID - * @param string $browseType - * @param string $orderBy - * @param string $groupBy + * @param int $executionID + * @param string $browseType + * @param string $orderBy + * @param string $groupBy * @access public * @return void */ @@ -2422,7 +2422,6 @@ class execution extends control } foreach($products as $product) $productNames[$product->id] = $product->name; - $plans = $this->execution->getPlans($products, 'skipParent', $executionID); $allPlans = array('' => ''); if(!empty($plans)) @@ -2430,6 +2429,9 @@ class execution extends control foreach($plans as $plan) $allPlans += $plan; } + $taskToOpen = !empty($_COOKIE['taskToOpen']) ? $_COOKIE['taskToOpen'] : 0; + setcookie('taskToOpen', 0, time() - 3600, $this->config->webRoot, '', $this->config->cookieSecure, true); + $this->view->title = $this->lang->kanban->view; $this->view->users = $users; $this->view->regions = $kanbanData; @@ -2448,6 +2450,7 @@ class execution extends control $this->view->kanbanData = $kanbanData; $this->view->executionActions = $executionActions; $this->view->kanban = $this->lang->execution->kanban; + $this->view->taskToOpen = $taskToOpen; $this->display(); } diff --git a/module/execution/css/bug.css b/module/execution/css/bug.css index 095e852326..cd796af41f 100644 --- a/module/execution/css/bug.css +++ b/module/execution/css/bug.css @@ -9,4 +9,4 @@ td.delayed {color: #fff; background: #e84e0f !important;} .c-severity {width: 80px;} -.c-confirmed {overflow: hidden;} +.c-confirmed {overflow: hidden; text-align: center;} diff --git a/module/execution/view/kanban.html.php b/module/execution/view/kanban.html.php index 369c537783..8b596cf632 100644 --- a/module/execution/view/kanban.html.php +++ b/module/execution/view/kanban.html.php @@ -304,4 +304,33 @@ js::set('priv', + + diff --git a/module/kanban/css/view.css b/module/kanban/css/view.css index 9883b42ea9..1a860e96f3 100644 --- a/module/kanban/css/view.css +++ b/module/kanban/css/view.css @@ -165,7 +165,7 @@ .leftBtn.hidden + #regionNavTabs {padding-left: 10px;} #regionNavTabs > ul {display: inline-flex; border-bottom: none; margin-bottom: -3px;} #regionNavTabs > ul > li {padding: 0; text-align: center;} -#regionNavTabs > ul > li > a {min-width: 134px; overflow: hidden; white-space: nowrap; z-index: 0; position: relative; padding: 1.7rem; margin-left: -20px; background: none; outline: 0;} +#regionNavTabs > ul > li > a {min-width: 134px; overflow: hidden; white-space: nowrap; z-index: 0; position: relative; padding: 1.7rem; margin-left: -20px; background: none; outline: 0; cursor: pointer !important;} #regionNavTabs > ul > li:first-child > a {margin-left: 0;} #regionNavTabs > ul > li.active > a {z-index: 1;} #regionNavTabs > ul > li.active > a::before {background-color: #fff;} @@ -173,8 +173,9 @@ #regionNavTabs > ul > li > a > span {vertical-align: bottom; overflow: hidden; max-width: 6em; white-space: nowrap; display: inline-block;} #regionNavTabs > ul > li.active > a > span {color: #2b80ff!important;} #regionTabs.affixed {margin-bottom: 5px; position: fixed; top: 0px;} -#regionTabs.affixed + #kanbanContainer .kanban-board.kanban-affixed > .kanban-header {margin-top: 30px;} +#regionTabs.affixed + #kanbanContainer .kanban-board.kanban-affixed > .kanban-header {margin-top: 43px;} #regionTabs.affixed + #kanbanContainer .kanban-board.kanban-affixed > .kanban-header + .kanban-lane {margin-top: 38px;} +#regionTabs.affixed ul {margin-bottom: -10px;} #regionTabs.affixed ul > li {margin-bottom: 0px !important;} #regionTabs .region-actions .dropdown-menu {top: 25px;} #region-tab-actions {display: none;} diff --git a/module/kanban/js/view.js b/module/kanban/js/view.js index d55be5e3bd..ea84c580e3 100644 --- a/module/kanban/js/view.js +++ b/module/kanban/js/view.js @@ -1991,6 +1991,7 @@ $('[data-tab]').on('shown.zui.tab', function(e) if($(this).hasClass('archivedColumn')) $(this).find('a').attr('href', "javascript:loadMore(\"Column\", " + regionID + ')'); }); } + window.scrollTo(0, 0); /* To manually refresh stay under the current tab, save the ID of the current region. */ var url = createLink('kanban', 'ajaxSaveRegionID', 'regionID=' + regionID); diff --git a/module/mr/lang/zh-cn.php b/module/mr/lang/zh-cn.php index cd13f13884..66bf095a91 100644 --- a/module/mr/lang/zh-cn.php +++ b/module/mr/lang/zh-cn.php @@ -77,7 +77,7 @@ $lang->mr->assignedToMe = '指派给我'; $lang->mr->createdByMe = '由我创建'; $lang->mr->statusList = array(); -$lang->mr->statusList['all'] = '所有'; +$lang->mr->statusList['all'] = '全部'; $lang->mr->statusList['opened'] = '开放中'; $lang->mr->statusList['merged'] = '已合并'; $lang->mr->statusList['closed'] = '已关闭'; diff --git a/module/my/css/bug.css b/module/my/css/bug.css index 7cd56756df..2e23fc9a87 100644 --- a/module/my/css/bug.css +++ b/module/my/css/bug.css @@ -1,4 +1,3 @@ td.delayed {color: #fff; background: #e84e0f !important;} -.confirmed {color: #008000;} -.unconfirmed {color: #808080;} -.c-confirm {width:50px;} +.c-confirm {width:60px;} + diff --git a/module/my/view/project.html.php b/module/my/view/project.html.php index f88cb9afaf..bf69d20fae 100644 --- a/module/my/view/project.html.php +++ b/module/my/view/project.html.php @@ -88,7 +88,7 @@ id", $project, 'list', 'lock', '', '', false, "data-group='project'", '', $project->id);?>
- +