Merge branch 'lite_tanghucheng' into 'lite'
* Finish task #47942. See merge request easycorp/zentaopms!1507
This commit is contained in:
@@ -185,3 +185,19 @@ unset($lang->searchObjects['caselib']);
|
||||
unset($lang->searchObjects['testreport']);
|
||||
unset($lang->searchObjects['program']);
|
||||
unset($lang->searchObjects['user']);
|
||||
|
||||
/* adjust items of global create. */
|
||||
|
||||
unset($lang->createIcons['effort']);
|
||||
unset($lang->createIcons['bug']);
|
||||
unset($lang->createIcons['testcase']);
|
||||
unset($lang->createIcons['product']);
|
||||
unset($lang->createIcons['program']);
|
||||
unset($lang->createIcons['kanbanspace']);
|
||||
unset($lang->createIcons['kanban']);
|
||||
|
||||
$lang->createObjects['story'] = '目标';
|
||||
$lang->createObjects['task'] = '卡片';
|
||||
$lang->createObjects['execution'] = '看板';
|
||||
|
||||
$lang->createIcons['execution'] = 'kanban';
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
unset($config->search->fields->bug);
|
||||
unset($config->search->fields->product);
|
||||
unset($config->search->fields->build);
|
||||
unset($config->search->fields->case);
|
||||
unset($config->search->fields->productplan);
|
||||
unset($config->search->fields->release);
|
||||
unset($config->search->fields->testtask);
|
||||
unset($config->search->fields->testsuite);
|
||||
unset($config->search->fields->effort);
|
||||
unset($config->search->fields->caselib);
|
||||
unset($config->search->fields->testreport);
|
||||
unset($config->search->fields->program);
|
||||
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
$lang->search->modules['task'] = '卡片';
|
||||
$lang->search->modules['execution'] = '看板';
|
||||
$lang->search->modules['story'] = '目标';
|
||||
|
||||
unset($lang->search->modules['case']);
|
||||
unset($lang->search->modules['bug']);
|
||||
unset($lang->search->modules['build']);
|
||||
unset($lang->search->modules['effort']);
|
||||
unset($lang->search->modules['caselib']);
|
||||
unset($lang->search->modules['product']);
|
||||
unset($lang->search->modules['release']);
|
||||
unset($lang->search->modules['testtask']);
|
||||
unset($lang->search->modules['testsuite']);
|
||||
unset($lang->search->modules['testreport']);
|
||||
unset($lang->search->modules['productplan']);
|
||||
unset($lang->search->modules['program']);
|
||||
@@ -173,7 +173,6 @@ $lang->createIcons['program'] = 'program';
|
||||
$lang->createIcons['kanbanspace'] = 'cube';
|
||||
$lang->createIcons['kanban'] = 'kanban';
|
||||
|
||||
|
||||
$lang->noMenuModule = array('report', 'my', 'todo', 'effort', 'program', 'product', 'execution', 'task', 'build', 'productplan', 'project', 'projectrelease', 'projectstory', 'story', 'branch', 'release', 'attend', 'leave', 'makeup', 'overtime', 'lieu', 'custom', 'admin', 'mail', 'extension', 'dev', 'backup', 'action', 'cron', 'pssp', 'sms', 'message', 'webhook', 'search', 'score', 'stage', 'entry', 'jenkins', 'gitlab');
|
||||
|
||||
if(isset($_SESSION['tutorialMode']) and $_SESSION['tutorialMode'] and !defined('TUTORIAL')) define('TUTORIAL', true);
|
||||
|
||||
+12
-1
@@ -553,7 +553,18 @@ class commonModel extends model
|
||||
$params = "productID=$productID&branch=&extras=from=global";
|
||||
break;
|
||||
case 'story':
|
||||
$params = "productID=$productID&branch=0&moduleID=0&storyID=0&objectID=0&bugID=0&planID=0&todoID=0&extra=from=global";
|
||||
if(!$productID and $config->vision == 'lite')
|
||||
{
|
||||
$module = 'project';
|
||||
$params = "programID=0©ProjectID=0&extra=from=global";
|
||||
$createMethod = 'createGuide';
|
||||
$attr = 'data-toggle="modal"';
|
||||
}
|
||||
else
|
||||
{
|
||||
$params = "productID=$productID&branch=0&moduleID=0&storyID=0&objectID=0&bugID=0&planID=0&todoID=0&extra=from=global";
|
||||
}
|
||||
|
||||
break;
|
||||
case 'task':
|
||||
$params = "executionID=0&storyID=0&moduleID=0&taskID=0&todoID=0&extra=from=global";
|
||||
|
||||
Reference in New Issue
Block a user