diff --git a/module/common/lang/en.php b/module/common/lang/en.php index ad78f5a4e1..a236f17cb2 100644 --- a/module/common/lang/en.php +++ b/module/common/lang/en.php @@ -210,13 +210,14 @@ $lang->project->list = 'Project List'; $lang->execution->list = "{$lang->executionCommon} List"; -$lang->doc->recent = 'Recent'; -$lang->doc->my = 'My'; -$lang->doc->favorite = 'Favorite'; -$lang->doc->product = 'Product'; -$lang->doc->project = 'Project'; -$lang->doc->custom = 'Custom'; -$lang->doc->wiki = 'WIKI'; +$lang->doc->recent = 'Recent'; +$lang->doc->my = 'My'; +$lang->doc->favorite = 'Favorite'; +$lang->doc->product = 'Product'; +$lang->doc->project = 'Project'; +$lang->doc->execution = $lang->executionCommon; +$lang->doc->custom = 'Custom'; +$lang->doc->wiki = 'WIKI'; $lang->product->list = $lang->productCommon . ' List'; diff --git a/module/common/lang/zh-tw.php b/module/common/lang/zh-tw.php index 0c47c69eff..46fa151b28 100644 --- a/module/common/lang/zh-tw.php +++ b/module/common/lang/zh-tw.php @@ -210,13 +210,14 @@ $lang->project->list = '項目列表'; $lang->execution->list = "{$lang->executionCommon}列表"; -$lang->doc->recent = '最近文檔'; -$lang->doc->my = '我的文檔'; -$lang->doc->favorite = '我的收藏'; -$lang->doc->product = '產品庫'; -$lang->doc->project = '項目庫'; -$lang->doc->custom = '自定義庫'; -$lang->doc->wiki = 'WIKI'; +$lang->doc->recent = '最近文檔'; +$lang->doc->my = '我的文檔'; +$lang->doc->favorite = '我的收藏'; +$lang->doc->product = '產品庫'; +$lang->doc->project = '項目庫'; +$lang->doc->execution = "{$lang->executionCommon}庫"; +$lang->doc->custom = '自定義庫'; +$lang->doc->wiki = 'WIKI'; $lang->product->list = $lang->productCommon . '列表'; diff --git a/module/doc/control.php b/module/doc/control.php index 778b899373..c51d41e5c1 100644 --- a/module/doc/control.php +++ b/module/doc/control.php @@ -622,6 +622,7 @@ class doc extends control { $doc = $this->doc->getByID($docID); $objectType = $this->dao->select('type')->from(TABLE_DOCLIB)->where('id')->eq($doc->lib)->fetch('type'); + if($this->config->systemMode == 'classic' and $objectType == 'project') $objectType = 'execution'; $this->doc->delete(TABLE_DOC, $docID); /* if ajax request, send result. */ diff --git a/module/doc/js/createlib.js b/module/doc/js/createlib.js index 1af8868b9f..9867c1de4e 100644 --- a/module/doc/js/createlib.js +++ b/module/doc/js/createlib.js @@ -74,6 +74,7 @@ function changeByLibType(libType) var acl = $('form [name=acl]').val(); var notice = typeof(noticeAcl[libType][acl]) != 'undefined' ? noticeAcl[libType][acl] : ''; $('#noticeAcl').html(notice); + $('#whiteListBox').addClass('hidden'); } function changeDoclibAcl(libType) diff --git a/module/doc/lang/en.php b/module/doc/lang/en.php index b7b06240c9..c365e9ade4 100644 --- a/module/doc/lang/en.php +++ b/module/doc/lang/en.php @@ -105,12 +105,13 @@ $lang->doc->fixedMenu = 'Fix to Menu'; $lang->doc->removeMenu = 'Remove from Menu'; $lang->doc->search = 'Search'; +global $config; /* Query condition list. */ $lang->doc->allProduct = 'All' . $lang->productCommon . 's'; $lang->doc->allExecutions = 'All' . $lang->executionCommon . 's'; $lang->doc->libTypeList['product'] = $lang->productCommon . ' Library'; -$lang->doc->libTypeList['project'] = 'Project Library'; +if($config->systemMode == 'new') $lang->doc->libTypeList['project'] = 'Project Library'; $lang->doc->libTypeList['execution'] = $lang->executionCommon . ' Library'; $lang->doc->libTypeList['custom'] = 'Custom Library'; diff --git a/module/doc/lang/zh-cn.php b/module/doc/lang/zh-cn.php index fcc67947e3..adf72ec989 100644 --- a/module/doc/lang/zh-cn.php +++ b/module/doc/lang/zh-cn.php @@ -105,12 +105,13 @@ $lang->doc->fixedMenu = '固定到菜单栏'; $lang->doc->removeMenu = '从菜单栏移除'; $lang->doc->search = '搜索'; +global $config; /* 查询条件列表 */ $lang->doc->allProduct = '所有' . $lang->productCommon; $lang->doc->allExecutions = '所有' . $lang->executionCommon; $lang->doc->libTypeList['product'] = $lang->productCommon . '文档库'; -$lang->doc->libTypeList['project'] = '项目文档库'; +if($config->systemMode == 'new') $lang->doc->libTypeList['project'] = '项目文档库'; $lang->doc->libTypeList['execution'] = $lang->executionCommon . '文档库'; $lang->doc->libTypeList['custom'] = '自定义文档库'; diff --git a/module/doc/lang/zh-tw.php b/module/doc/lang/zh-tw.php index 49de4726a4..0379584037 100644 --- a/module/doc/lang/zh-tw.php +++ b/module/doc/lang/zh-tw.php @@ -16,7 +16,7 @@ $lang->doc->product = '所屬' . $lang->productCommon; $lang->doc->project = '所屬項目'; $lang->doc->execution = '所屬' . $lang->executionCommon; $lang->doc->lib = '所屬文檔庫'; -$lang->doc->module = '所屬分類'; +$lang->doc->module = '所屬目錄'; $lang->doc->title = '文檔標題'; $lang->doc->digest = '文檔摘要'; $lang->doc->comment = '文檔備註'; @@ -83,7 +83,8 @@ $lang->doc->editBook = '編輯手冊'; $lang->doc->editType = '編輯目錄'; $lang->doc->deleteType = '刪除目錄'; $lang->doc->addType = '增加目錄'; -$lang->doc->childType = '子分類'; +$lang->doc->childType = '子目錄'; +$lang->doc->catalogName = '目錄名稱'; $lang->doc->collect = '收藏'; $lang->doc->cancelCollection = '取消收藏'; $lang->doc->deleteFile = '刪除附件'; @@ -187,13 +188,15 @@ $lang->doc->noOpenedDoc = '您還沒有創建任何文檔。'; $lang->doc->noCollectedDoc = '您還沒有收藏任何文檔。'; $lang->doc->errorEmptyLib = '文檔庫暫無數據。'; -$lang->doc->noticeAcl['lib']['product']['default'] = '有所選產品訪問權限的用戶可以訪問。'; -$lang->doc->noticeAcl['lib']['product']['custom'] = '有所選產品訪問權限或白名單裡的用戶可以訪問。'; -$lang->doc->noticeAcl['lib']['project']['default'] = "有所選項目訪問權限的用戶可以訪問。"; -$lang->doc->noticeAcl['lib']['project']['custom'] = "有所選項目訪問權限或白名單裡的用戶可以訪問。"; -$lang->doc->noticeAcl['lib']['custom']['open'] = '所有人都可以訪問。'; -$lang->doc->noticeAcl['lib']['custom']['custom'] = '白名單的用戶可以訪問。'; -$lang->doc->noticeAcl['lib']['custom']['private'] = '只有創建者自己可以訪問。'; +$lang->doc->noticeAcl['lib']['product']['default'] = '有所選產品訪問權限的用戶可以訪問。'; +$lang->doc->noticeAcl['lib']['product']['custom'] = '有所選產品訪問權限或白名單裡的用戶可以訪問。'; +$lang->doc->noticeAcl['lib']['project']['default'] = "有所選項目訪問權限的用戶可以訪問。"; +$lang->doc->noticeAcl['lib']['project']['custom'] = "有所選項目訪問權限或白名單裡的用戶可以訪問。"; +$lang->doc->noticeAcl['lib']['execution']['default'] = "有所選{$lang->executionCommon}訪問權限的用戶可以訪問。"; +$lang->doc->noticeAcl['lib']['execution']['custom'] = "有所選{$lang->executionCommon}訪問權限或白名單裡的用戶可以訪問。"; +$lang->doc->noticeAcl['lib']['custom']['open'] = '所有人都可以訪問。'; +$lang->doc->noticeAcl['lib']['custom']['custom'] = '白名單的用戶可以訪問。'; +$lang->doc->noticeAcl['lib']['custom']['private'] = '只有創建者自己可以訪問。'; $lang->doc->noticeAcl['doc']['open'] = '有文檔所屬文檔庫訪問權限的,都可以訪問。'; $lang->doc->noticeAcl['doc']['custom'] = '白名單的用戶可以訪問。'; diff --git a/module/execution/control.php b/module/execution/control.php index ab36958f50..333563729a 100644 --- a/module/execution/control.php +++ b/module/execution/control.php @@ -1287,6 +1287,11 @@ class execution extends control $this->executeHooks($executionID); + if($this->app->openApp == 'doc') + { + $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => $this->createLink('doc', 'objectLibs', "type=execution"))); + } + $planID = ''; if(isset($_POST['plans'])) { diff --git a/module/execution/lang/zh-tw.php b/module/execution/lang/zh-tw.php index 318abc7722..a41f945e45 100644 --- a/module/execution/lang/zh-tw.php +++ b/module/execution/lang/zh-tw.php @@ -11,15 +11,15 @@ */ /* 欄位列表。*/ $lang->execution->allExecutions = '所有' . $lang->executionCommon; -$lang->execution->allExecutionAB = '所有執行'; +$lang->execution->allExecutionAB = "所有{$lang->execution->common}"; $lang->execution->id = $lang->executionCommon . '編號'; $lang->execution->type = $lang->executionCommon . '類型'; $lang->execution->name = $lang->executionCommon . '名稱'; $lang->execution->code = $lang->executionCommon . '代號'; $lang->execution->project = '所屬項目'; -$lang->execution->execName = '執行名稱'; -$lang->execution->execCode = '執行代號'; -$lang->execution->execType = '執行類型'; +$lang->execution->execName = "{$lang->execution->common}名稱"; +$lang->execution->execCode = "{$lang->execution->common}代號"; +$lang->execution->execType = "{$lang->execution->common}類型"; $lang->execution->stage = '階段'; $lang->execution->pri = '優先順序'; $lang->execution->openedBy = '由誰創建'; @@ -39,14 +39,14 @@ $lang->execution->workHourUnit = 'h'; $lang->execution->totalHours = '可用工時'; $lang->execution->totalDays = '可用工日'; $lang->execution->status = $lang->executionCommon . '狀態'; -$lang->execution->execStatus = '執行狀態'; +$lang->execution->execStatus = "{$lang->execution->common}狀態"; $lang->execution->subStatus = '子狀態'; $lang->execution->desc = $lang->executionCommon . '描述'; -$lang->execution->execDesc = '執行描述'; +$lang->execution->execDesc = "{$lang->execution->common}描述"; $lang->execution->owner = '負責人'; $lang->execution->PO = $lang->productCommon . '負責人'; $lang->execution->PM = $lang->executionCommon . '負責人'; -$lang->execution->execPM = '執行負責人'; +$lang->execution->execPM = "{$lang->execution->common}負責人"; $lang->execution->QD = '測試負責人'; $lang->execution->RD = '發佈負責人'; $lang->execution->release = '發佈'; @@ -149,7 +149,7 @@ $lang->execution->burnByList['estimate'] = "按計劃工時查看"; $lang->execution->burnByList['storyPoint'] = '按故事點查看'; /* 方法列表。*/ -$lang->execution->index = "執行主頁"; +$lang->execution->index = "{$lang->execution->common}主頁"; $lang->execution->task = '任務列表'; $lang->execution->groupTask = '分組瀏覽任務'; $lang->execution->story = "{$lang->SRCommon}列表"; @@ -174,29 +174,29 @@ $lang->execution->linkPlan = "關聯計劃"; $lang->execution->unlinkStoryTasks = "未關聯{$lang->SRCommon}任務"; $lang->execution->linkedProducts = '已關聯'; $lang->execution->unlinkedProducts = '未關聯'; -$lang->execution->view = "執行概況"; -$lang->execution->startAction = "開始執行"; -$lang->execution->activateAction = "激活執行"; -$lang->execution->delayAction = "延期執行"; -$lang->execution->suspendAction = "掛起執行"; -$lang->execution->closeAction = "關閉執行"; -$lang->execution->testtaskAction = "執行測試單"; -$lang->execution->teamAction = "執行團隊"; -$lang->execution->kanbanAction = "執行看板"; +$lang->execution->view = "{$lang->execution->common}概況"; +$lang->execution->startAction = "開始{$lang->execution->common}"; +$lang->execution->activateAction = "激活{$lang->execution->common}"; +$lang->execution->delayAction = "延期{$lang->execution->common}"; +$lang->execution->suspendAction = "掛起{$lang->execution->common}"; +$lang->execution->closeAction = "關閉{$lang->execution->common}"; +$lang->execution->testtaskAction = "{$lang->execution->common}測試單"; +$lang->execution->teamAction = "{$lang->execution->common}團隊"; +$lang->execution->kanbanAction = "{$lang->execution->common}看板"; $lang->execution->printKanbanAction = "打印看板"; -$lang->execution->treeAction = "執行樹狀圖"; -$lang->execution->exportAction = "導出執行"; +$lang->execution->treeAction = "{$lang->execution->common}樹狀圖"; +$lang->execution->exportAction = "導出{$lang->execution->common}"; $lang->execution->computeBurnAction = "計算燃盡圖"; $lang->execution->create = "添加{$lang->executionCommon}"; -$lang->execution->createExec = "添加執行"; -$lang->execution->copyExec = "複製執行"; +$lang->execution->createExec = "添加{$lang->execution->common}"; +$lang->execution->copyExec = "複製{$lang->execution->common}"; $lang->execution->copy = "複製{$lang->executionCommon}"; $lang->execution->delete = "刪除{$lang->executionCommon}"; -$lang->execution->deleteAB = "刪除執行"; -$lang->execution->browse = "瀏覽執行"; +$lang->execution->deleteAB = "刪除{$lang->execution->common}"; +$lang->execution->browse = "瀏覽{$lang->execution->common}"; $lang->execution->list = "{$lang->executionCommon}列表"; $lang->execution->edit = "編輯{$lang->executionCommon}"; -$lang->execution->editAction = "編輯執行"; +$lang->execution->editAction = "編輯{$lang->execution->common}"; $lang->execution->batchEdit = "編輯"; $lang->execution->batchEditAction = "批量編輯"; $lang->execution->manageMembers = '團隊管理'; @@ -259,7 +259,7 @@ $lang->execution->aboveAllExecution = "以上所有{$lang->executionCommon}"; /* 頁面提示。*/ $lang->execution->linkStoryByPlanTips = "此操作會將所選計划下面的{$lang->SRCommon}全部關聯到此{$lang->executionCommon}中"; -$lang->execution->selectExecution = "請選擇執行"; +$lang->execution->selectExecution = "請選擇{$lang->execution->common}"; $lang->execution->beginAndEnd = '起止時間'; $lang->execution->lblStats = '工時統計'; $lang->execution->stats = '可用工時 %s 工時,總共預計 %s 工時,已經消耗 %s 工時,預計剩餘 %s 工時'; @@ -294,7 +294,7 @@ $lang->execution->noExecution = "暫時沒有{$lang->executionCommon}。 $lang->execution->noMembers = '暫時沒有團隊成員。'; $lang->execution->workloadTotal = "工作量占比累計不應當超過100, 當前產品下的工作量之和為%s"; // $lang->execution->linkProjectStoryTip = "(關聯{$lang->SRCommon}來源於項目下所關聯的{$lang->SRCommon})"; -$lang->execution->linkAllStoryTip = "(項目下還未關聯{$lang->SRCommon},可直接關聯該執行所關聯產品的{$lang->SRCommon})"; +$lang->execution->linkAllStoryTip = "(項目下還未關聯{$lang->SRCommon},可直接關聯該{$lang->execution->common}所關聯產品的{$lang->SRCommon})"; /* 交互提示。*/ $lang->execution->confirmDelete = "您確定刪除{$lang->executionCommon}[%s]嗎?"; diff --git a/module/execution/model.php b/module/execution/model.php index 04b3a1fd1b..2a6c1b79de 100644 --- a/module/execution/model.php +++ b/module/execution/model.php @@ -278,6 +278,7 @@ class executionModel extends model */ public function create($copyExecutionID = '') { + $sprintType = 'sprint'; $this->lang->execution->team = $this->lang->execution->teamname; if($this->config->systemMode == 'new') diff --git a/module/execution/view/create.html.php b/module/execution/view/create.html.php index 17685be726..3488b3a143 100644 --- a/module/execution/view/create.html.php +++ b/module/execution/view/create.html.php @@ -11,7 +11,7 @@ */ ?> -systemMode == 'new' ? $this->createLink('project', 'execution', "status=all&projectID=$projectID") : $this-> createLink('execution', 'task', 'executionID=' . $executionID);?> +systemMode == 'new' ? $this->createLink('project', 'execution', "status=all&projectID=$projectID") : $this->createLink('execution', 'task', 'executionID=' . $executionID);?>