Merge branch 'cyy_fixbug' into 'master'
Cyy fixbug See merge request easycorp/zentaopms!7539
This commit is contained in:
+111
-113
@@ -11,8 +11,6 @@
|
||||
*/
|
||||
|
||||
/* Product common list. */
|
||||
$tableEscape = $config->db->driver == 'dm' ? '"' : '`';
|
||||
|
||||
$config->productCommonList['zh-cn'][0] = '产品';
|
||||
$config->productCommonList['zh-cn'][1] = '项目';
|
||||
$config->productCommonList['zh-tw'][0] = '產品';
|
||||
@@ -248,129 +246,129 @@ $config->openModules[] = 'upgrade';
|
||||
$config->openModules[] = 'im';
|
||||
|
||||
/* Define the tables. */
|
||||
define('TABLE_COMPANY', $tableEscape . $config->db->prefix . 'company' . $tableEscape);
|
||||
define('TABLE_DEPT', $tableEscape . $config->db->prefix . 'dept' . $tableEscape);
|
||||
define('TABLE_CONFIG', $tableEscape . $config->db->prefix . 'config' . $tableEscape);
|
||||
define('TABLE_USER', $tableEscape . $config->db->prefix . 'user' . $tableEscape);
|
||||
define('TABLE_TODO', $tableEscape . $config->db->prefix . 'todo' . $tableEscape);
|
||||
define('TABLE_GROUP', $tableEscape . $config->db->prefix . 'group' . $tableEscape);
|
||||
define('TABLE_GROUPPRIV', $tableEscape . $config->db->prefix . 'grouppriv' . $tableEscape);
|
||||
define('TABLE_USERGROUP', $tableEscape . $config->db->prefix . 'usergroup' . $tableEscape);
|
||||
define('TABLE_USERQUERY', $tableEscape . $config->db->prefix . 'userquery' . $tableEscape);
|
||||
define('TABLE_USERCONTACT', $tableEscape . $config->db->prefix . 'usercontact' . $tableEscape);
|
||||
define('TABLE_USERVIEW', $tableEscape . $config->db->prefix . 'userview' . $tableEscape);
|
||||
define('TABLE_COMPANY', '`' . $config->db->prefix . 'company`');
|
||||
define('TABLE_DEPT', '`' . $config->db->prefix . 'dept`');
|
||||
define('TABLE_CONFIG', '`' . $config->db->prefix . 'config`');
|
||||
define('TABLE_USER', '`' . $config->db->prefix . 'user`');
|
||||
define('TABLE_TODO', '`' . $config->db->prefix . 'todo`');
|
||||
define('TABLE_GROUP', '`' . $config->db->prefix . 'group`');
|
||||
define('TABLE_GROUPPRIV', '`' . $config->db->prefix . 'grouppriv`');
|
||||
define('TABLE_USERGROUP', '`' . $config->db->prefix . 'usergroup`');
|
||||
define('TABLE_USERQUERY', '`' . $config->db->prefix . 'userquery`');
|
||||
define('TABLE_USERCONTACT', '`' . $config->db->prefix . 'usercontact`');
|
||||
define('TABLE_USERVIEW', '`' . $config->db->prefix . 'userview`');
|
||||
|
||||
define('TABLE_BUG', $tableEscape . $config->db->prefix . 'bug' . $tableEscape);
|
||||
define('TABLE_CASE', $tableEscape . $config->db->prefix . 'case' . $tableEscape);
|
||||
define('TABLE_CASESTEP', $tableEscape . $config->db->prefix . 'casestep' . $tableEscape);
|
||||
define('TABLE_TESTTASK', $tableEscape . $config->db->prefix . 'testtask' . $tableEscape);
|
||||
define('TABLE_TESTRUN', $tableEscape . $config->db->prefix . 'testrun' . $tableEscape);
|
||||
define('TABLE_TESTRESULT', $tableEscape . $config->db->prefix . 'testresult' . $tableEscape);
|
||||
define('TABLE_USERTPL', $tableEscape . $config->db->prefix . 'usertpl' . $tableEscape);
|
||||
define('TABLE_ZAHOST', $tableEscape . $config->db->prefix . 'host' . $tableEscape);
|
||||
define('TABLE_IMAGE', $tableEscape . $config->db->prefix . 'image' . $tableEscape);
|
||||
define('TABLE_AUTOMATION', $tableEscape . $config->db->prefix . 'automation' . $tableEscape);
|
||||
define('TABLE_BUG', '`' . $config->db->prefix . 'bug`');
|
||||
define('TABLE_CASE', '`' . $config->db->prefix . 'case`');
|
||||
define('TABLE_CASESTEP', '`' . $config->db->prefix . 'casestep`');
|
||||
define('TABLE_TESTTASK', '`' . $config->db->prefix . 'testtask`');
|
||||
define('TABLE_TESTRUN', '`' . $config->db->prefix . 'testrun`');
|
||||
define('TABLE_TESTRESULT', '`' . $config->db->prefix . 'testresult`');
|
||||
define('TABLE_USERTPL', '`' . $config->db->prefix . 'usertpl`');
|
||||
define('TABLE_ZAHOST', '`' . $config->db->prefix . 'host`');
|
||||
define('TABLE_IMAGE', '`' . $config->db->prefix . 'image`');
|
||||
define('TABLE_AUTOMATION', '`' . $config->db->prefix . 'automation`');
|
||||
|
||||
if(!defined('TABLE_ASSET')) define('TABLE_ASSET', $tableEscape . $config->db->prefix . 'asset' . $tableEscape);
|
||||
if(!defined('TABLE_ASSET')) define('TABLE_ASSET', '`' . $config->db->prefix . 'asset`');
|
||||
|
||||
define('TABLE_PRODUCT', $tableEscape . $config->db->prefix . 'product' . $tableEscape);
|
||||
define('TABLE_BRANCH', $tableEscape . $config->db->prefix . 'branch' . $tableEscape);
|
||||
define('TABLE_EXPECT', $tableEscape . $config->db->prefix . 'expect' . $tableEscape);
|
||||
define('TABLE_STAGE', $tableEscape . $config->db->prefix . 'stage' . $tableEscape);
|
||||
define('TABLE_STAKEHOLDER', $tableEscape . $config->db->prefix . 'stakeholder' . $tableEscape);
|
||||
define('TABLE_STORY', $tableEscape . $config->db->prefix . 'story' . $tableEscape);
|
||||
define('TABLE_STORYSPEC', $tableEscape . $config->db->prefix . 'storyspec' . $tableEscape);
|
||||
define('TABLE_STORYREVIEW', $tableEscape . $config->db->prefix . 'storyreview' . $tableEscape);
|
||||
define('TABLE_STORYSTAGE', $tableEscape . $config->db->prefix . 'storystage' . $tableEscape);
|
||||
define('TABLE_STORYESTIMATE', $tableEscape . $config->db->prefix . 'storyestimate' . $tableEscape);
|
||||
define('TABLE_PRODUCTPLAN', $tableEscape . $config->db->prefix . 'productplan' . $tableEscape);
|
||||
define('TABLE_PLANSTORY', $tableEscape . $config->db->prefix . 'planstory' . $tableEscape);
|
||||
define('TABLE_RELEASE', $tableEscape . $config->db->prefix . 'release' . $tableEscape);
|
||||
define('TABLE_PRODUCT', '`' . $config->db->prefix . 'product`');
|
||||
define('TABLE_BRANCH', '`' . $config->db->prefix . 'branch`');
|
||||
define('TABLE_EXPECT', '`' . $config->db->prefix . 'expect`');
|
||||
define('TABLE_STAGE', '`' . $config->db->prefix . 'stage`');
|
||||
define('TABLE_STAKEHOLDER', '`' . $config->db->prefix . 'stakeholder`');
|
||||
define('TABLE_STORY', '`' . $config->db->prefix . 'story`');
|
||||
define('TABLE_STORYSPEC', '`' . $config->db->prefix . 'storyspec`');
|
||||
define('TABLE_STORYREVIEW', '`' . $config->db->prefix . 'storyreview`');
|
||||
define('TABLE_STORYSTAGE', '`' . $config->db->prefix . 'storystage`');
|
||||
define('TABLE_STORYESTIMATE', '`' . $config->db->prefix . 'storyestimate`');
|
||||
define('TABLE_PRODUCTPLAN', '`' . $config->db->prefix . 'productplan`');
|
||||
define('TABLE_PLANSTORY', '`' . $config->db->prefix . 'planstory`');
|
||||
define('TABLE_RELEASE', '`' . $config->db->prefix . 'release`');
|
||||
|
||||
define('TABLE_PROGRAM', $tableEscape . $config->db->prefix . 'project' . $tableEscape);
|
||||
define('TABLE_PROJECT', $tableEscape . $config->db->prefix . 'project' . $tableEscape);
|
||||
define('TABLE_EXECUTION', $tableEscape . $config->db->prefix . 'project' . $tableEscape);
|
||||
define('TABLE_TASK', $tableEscape . $config->db->prefix . 'task' . $tableEscape);
|
||||
define('TABLE_TASKSPEC', $tableEscape . $config->db->prefix . 'taskspec' . $tableEscape);
|
||||
define('TABLE_TASKTEAM', $tableEscape . $config->db->prefix . 'taskteam' . $tableEscape);
|
||||
define('TABLE_TEAM', $tableEscape . $config->db->prefix . 'team' . $tableEscape);
|
||||
define('TABLE_PROJECTADMIN', $tableEscape . $config->db->prefix . 'projectadmin' . $tableEscape);
|
||||
define('TABLE_PROJECTPRODUCT',$tableEscape . $config->db->prefix . 'projectproduct' . $tableEscape);
|
||||
define('TABLE_PROJECTSTORY', $tableEscape . $config->db->prefix . 'projectstory' . $tableEscape);
|
||||
define('TABLE_PROJECTCASE', $tableEscape . $config->db->prefix . 'projectcase' . $tableEscape);
|
||||
define('TABLE_TASKESTIMATE', $tableEscape . $config->db->prefix . 'taskestimate' . $tableEscape);
|
||||
define('TABLE_EFFORT', $tableEscape . $config->db->prefix . 'effort' . $tableEscape);
|
||||
define('TABLE_BURN', $tableEscape . $config->db->prefix . 'burn' . $tableEscape);
|
||||
define('TABLE_CFD', $tableEscape . $config->db->prefix . 'cfd' . $tableEscape);
|
||||
define('TABLE_BUILD', $tableEscape . $config->db->prefix . 'build' . $tableEscape);
|
||||
define('TABLE_ACL', $tableEscape . $config->db->prefix . 'acl' . $tableEscape);
|
||||
define('TABLE_PROGRAM', '`' . $config->db->prefix . 'project`');
|
||||
define('TABLE_PROJECT', '`' . $config->db->prefix . 'project`');
|
||||
define('TABLE_EXECUTION', '`' . $config->db->prefix . 'project`');
|
||||
define('TABLE_TASK', '`' . $config->db->prefix . 'task`');
|
||||
define('TABLE_TASKSPEC', '`' . $config->db->prefix . 'taskspec`');
|
||||
define('TABLE_TASKTEAM', '`' . $config->db->prefix . 'taskteam`');
|
||||
define('TABLE_TEAM', '`' . $config->db->prefix . 'team`');
|
||||
define('TABLE_PROJECTADMIN', '`' . $config->db->prefix . 'projectadmin`');
|
||||
define('TABLE_PROJECTPRODUCT','`' . $config->db->prefix . 'projectproduct`');
|
||||
define('TABLE_PROJECTSTORY', '`' . $config->db->prefix . 'projectstory`');
|
||||
define('TABLE_PROJECTCASE', '`' . $config->db->prefix . 'projectcase`');
|
||||
define('TABLE_TASKESTIMATE', '`' . $config->db->prefix . 'taskestimate`');
|
||||
define('TABLE_EFFORT', '`' . $config->db->prefix . 'effort`');
|
||||
define('TABLE_BURN', '`' . $config->db->prefix . 'burn`');
|
||||
define('TABLE_CFD', '`' . $config->db->prefix . 'cfd`');
|
||||
define('TABLE_BUILD', '`' . $config->db->prefix . 'build`');
|
||||
define('TABLE_ACL', '`' . $config->db->prefix . 'acl`');
|
||||
|
||||
define('TABLE_DESIGN', $tableEscape . $config->db->prefix . 'design' . $tableEscape);
|
||||
define('TABLE_DESIGNSPEC', $tableEscape . $config->db->prefix . 'designspec' . $tableEscape);
|
||||
define('TABLE_DOCLIB', $tableEscape . $config->db->prefix . 'doclib' . $tableEscape);
|
||||
define('TABLE_DOC', $tableEscape . $config->db->prefix . 'doc' . $tableEscape);
|
||||
define('TABLE_API', $tableEscape . $config->db->prefix . 'api' . $tableEscape);
|
||||
define('TABLE_API_SPEC', $tableEscape . $config->db->prefix . 'apispec' . $tableEscape);
|
||||
define('TABLE_APISTRUCT', $tableEscape . $config->db->prefix . 'apistruct' . $tableEscape);
|
||||
define('TABLE_APISTRUCT_SPEC', $tableEscape . $config->db->prefix . 'apistruct_spec' . $tableEscape);
|
||||
define('TABLE_API_LIB_RELEASE', $tableEscape . $config->db->prefix . 'api_lib_release' . $tableEscape);
|
||||
define('TABLE_DESIGN', '`' . $config->db->prefix . 'design`');
|
||||
define('TABLE_DESIGNSPEC', '`' . $config->db->prefix . 'designspec`');
|
||||
define('TABLE_DOCLIB', '`' . $config->db->prefix . 'doclib`');
|
||||
define('TABLE_DOC', '`' . $config->db->prefix . 'doc`');
|
||||
define('TABLE_API', '`' . $config->db->prefix . 'api`');
|
||||
define('TABLE_API_SPEC', '`' . $config->db->prefix . 'apispec`');
|
||||
define('TABLE_APISTRUCT', '`' . $config->db->prefix . 'apistruct`');
|
||||
define('TABLE_APISTRUCT_SPEC', '`' . $config->db->prefix . 'apistruct_spec`');
|
||||
define('TABLE_API_LIB_RELEASE', '`' . $config->db->prefix . 'api_lib_release`');
|
||||
|
||||
define('TABLE_MODULE', $tableEscape . $config->db->prefix . 'module' . $tableEscape);
|
||||
define('TABLE_ACTION', $tableEscape . $config->db->prefix . 'action' . $tableEscape);
|
||||
define('TABLE_FILE', $tableEscape . $config->db->prefix . 'file' . $tableEscape);
|
||||
define('TABLE_HOLIDAY', $tableEscape . $config->db->prefix . 'holiday' . $tableEscape);
|
||||
define('TABLE_HISTORY', $tableEscape . $config->db->prefix . 'history' . $tableEscape);
|
||||
define('TABLE_EXTENSION', $tableEscape . $config->db->prefix . 'extension' . $tableEscape);
|
||||
define('TABLE_CRON', $tableEscape . $config->db->prefix . 'cron' . $tableEscape);
|
||||
define('TABLE_BLOCK', $tableEscape . $config->db->prefix . 'block' . $tableEscape);
|
||||
define('TABLE_DOCACTION', $tableEscape . $config->db->prefix . 'docaction' . $tableEscape);
|
||||
define('TABLE_DOCCONTENT', $tableEscape . $config->db->prefix . 'doccontent' . $tableEscape);
|
||||
define('TABLE_TESTSUITE', $tableEscape . $config->db->prefix . 'testsuite' . $tableEscape);
|
||||
define('TABLE_SUITECASE', $tableEscape . $config->db->prefix . 'suitecase' . $tableEscape);
|
||||
define('TABLE_TESTREPORT', $tableEscape . $config->db->prefix . 'testreport' . $tableEscape);
|
||||
define('TABLE_MODULE', '`' . $config->db->prefix . 'module`');
|
||||
define('TABLE_ACTION', '`' . $config->db->prefix . 'action`');
|
||||
define('TABLE_FILE', '`' . $config->db->prefix . 'file`');
|
||||
define('TABLE_HOLIDAY', '`' . $config->db->prefix . 'holiday`');
|
||||
define('TABLE_HISTORY', '`' . $config->db->prefix . 'history`');
|
||||
define('TABLE_EXTENSION', '`' . $config->db->prefix . 'extension`');
|
||||
define('TABLE_CRON', '`' . $config->db->prefix . 'cron`');
|
||||
define('TABLE_BLOCK', '`' . $config->db->prefix . 'block`');
|
||||
define('TABLE_DOCACTION', '`' . $config->db->prefix . 'docaction`');
|
||||
define('TABLE_DOCCONTENT', '`' . $config->db->prefix . 'doccontent`');
|
||||
define('TABLE_TESTSUITE', '`' . $config->db->prefix . 'testsuite`');
|
||||
define('TABLE_SUITECASE', '`' . $config->db->prefix . 'suitecase`');
|
||||
define('TABLE_TESTREPORT', '`' . $config->db->prefix . 'testreport`');
|
||||
|
||||
define('TABLE_ENTRY', $tableEscape . $config->db->prefix . 'entry' . $tableEscape);
|
||||
define('TABLE_WEEKLYREPORT', $tableEscape . $config->db->prefix . 'weeklyreport' . $tableEscape);
|
||||
define('TABLE_WEBHOOK', $tableEscape . $config->db->prefix . 'webhook' . $tableEscape);
|
||||
define('TABLE_LOG', $tableEscape . $config->db->prefix . 'log' . $tableEscape);
|
||||
define('TABLE_SCORE', $tableEscape . $config->db->prefix . 'score' . $tableEscape);
|
||||
define('TABLE_NOTIFY', $tableEscape . $config->db->prefix . 'notify' . $tableEscape);
|
||||
define('TABLE_OAUTH', $tableEscape . $config->db->prefix . 'oauth' . $tableEscape);
|
||||
define('TABLE_PIPELINE', $tableEscape . $config->db->prefix . 'pipeline' . $tableEscape);
|
||||
define('TABLE_JOB', $tableEscape . $config->db->prefix . 'job' . $tableEscape);
|
||||
define('TABLE_COMPILE', $tableEscape . $config->db->prefix . 'compile' . $tableEscape);
|
||||
define('TABLE_MR', $tableEscape . $config->db->prefix . 'mr' . $tableEscape);
|
||||
define('TABLE_MRAPPROVAL', $tableEscape . $config->db->prefix . 'mrapproval' . $tableEscape);
|
||||
define('TABLE_ENTRY', '`' . $config->db->prefix . 'entry`');
|
||||
define('TABLE_WEEKLYREPORT', '`' . $config->db->prefix . 'weeklyreport`');
|
||||
define('TABLE_WEBHOOK', '`' . $config->db->prefix . 'webhook`');
|
||||
define('TABLE_LOG', '`' . $config->db->prefix . 'log`');
|
||||
define('TABLE_SCORE', '`' . $config->db->prefix . 'score`');
|
||||
define('TABLE_NOTIFY', '`' . $config->db->prefix . 'notify`');
|
||||
define('TABLE_OAUTH', '`' . $config->db->prefix . 'oauth`');
|
||||
define('TABLE_PIPELINE', '`' . $config->db->prefix . 'pipeline`');
|
||||
define('TABLE_JOB', '`' . $config->db->prefix . 'job`');
|
||||
define('TABLE_COMPILE', '`' . $config->db->prefix . 'compile`');
|
||||
define('TABLE_MR', '`' . $config->db->prefix . 'mr`');
|
||||
define('TABLE_MRAPPROVAL', '`' . $config->db->prefix . 'mrapproval`');
|
||||
|
||||
define('TABLE_REPO', $tableEscape . $config->db->prefix . 'repo' . $tableEscape);
|
||||
define('TABLE_RELATION', $tableEscape . $config->db->prefix . 'relation' . $tableEscape);
|
||||
define('TABLE_REPOHISTORY', $tableEscape . $config->db->prefix . 'repohistory' . $tableEscape);
|
||||
define('TABLE_REPOFILES', $tableEscape . $config->db->prefix . 'repofiles' . $tableEscape);
|
||||
define('TABLE_REPOBRANCH', $tableEscape . $config->db->prefix . 'repobranch' . $tableEscape);
|
||||
define('TABLE_KANBAN', $tableEscape . $config->db->prefix . 'kanban' . $tableEscape);
|
||||
define('TABLE_KANBANSPACE', $tableEscape . $config->db->prefix . 'kanbanspace' . $tableEscape);
|
||||
define('TABLE_KANBANREGION', $tableEscape . $config->db->prefix . 'kanbanregion' . $tableEscape);
|
||||
define('TABLE_KANBANLANE', $tableEscape . $config->db->prefix . 'kanbanlane' . $tableEscape);
|
||||
define('TABLE_KANBANCOLUMN', $tableEscape . $config->db->prefix . 'kanbancolumn' . $tableEscape);
|
||||
define('TABLE_KANBANORDER', $tableEscape . $config->db->prefix . 'kanbanorder' . $tableEscape);
|
||||
define('TABLE_KANBANGROUP', $tableEscape . $config->db->prefix . 'kanbangroup' . $tableEscape);
|
||||
define('TABLE_KANBANCARD', $tableEscape . $config->db->prefix . 'kanbancard' . $tableEscape);
|
||||
define('TABLE_KANBANCELL', $tableEscape . $config->db->prefix . 'kanbancell' . $tableEscape);
|
||||
if(!defined('TABLE_LANG')) define('TABLE_LANG', $tableEscape . $config->db->prefix . 'lang' . $tableEscape);
|
||||
if(!defined('TABLE_PROJECTSPEC')) define('TABLE_PROJECTSPEC', $tableEscape . $config->db->prefix . 'projectspec' . $tableEscape);
|
||||
define('TABLE_REPO', '`' . $config->db->prefix . 'repo`');
|
||||
define('TABLE_RELATION', '`' . $config->db->prefix . 'relation`');
|
||||
define('TABLE_REPOHISTORY', '`' . $config->db->prefix . 'repohistory`');
|
||||
define('TABLE_REPOFILES', '`' . $config->db->prefix . 'repofiles`');
|
||||
define('TABLE_REPOBRANCH', '`' . $config->db->prefix . 'repobranch`');
|
||||
define('TABLE_KANBAN', '`' . $config->db->prefix . 'kanban`');
|
||||
define('TABLE_KANBANSPACE', '`' . $config->db->prefix . 'kanbanspace`');
|
||||
define('TABLE_KANBANREGION', '`' . $config->db->prefix . 'kanbanregion`');
|
||||
define('TABLE_KANBANLANE', '`' . $config->db->prefix . 'kanbanlane`');
|
||||
define('TABLE_KANBANCOLUMN', '`' . $config->db->prefix . 'kanbancolumn`');
|
||||
define('TABLE_KANBANORDER', '`' . $config->db->prefix . 'kanbanorder`');
|
||||
define('TABLE_KANBANGROUP', '`' . $config->db->prefix . 'kanbangroup`');
|
||||
define('TABLE_KANBANCARD', '`' . $config->db->prefix . 'kanbancard`');
|
||||
define('TABLE_KANBANCELL', '`' . $config->db->prefix . 'kanbancell`');
|
||||
if(!defined('TABLE_LANG')) define('TABLE_LANG', '`' . $config->db->prefix . 'lang`');
|
||||
if(!defined('TABLE_PROJECTSPEC')) define('TABLE_PROJECTSPEC', '`' . $config->db->prefix . 'projectspec`');
|
||||
|
||||
if(!defined('TABLE_SEARCHINDEX')) define('TABLE_SEARCHINDEX', $config->db->prefix . 'searchindex');
|
||||
if(!defined('TABLE_SEARCHDICT')) define('TABLE_SEARCHDICT', $config->db->prefix . 'searchdict');
|
||||
|
||||
define('TABLE_SCREEN', $tableEscape . $config->db->prefix . 'screen' . $tableEscape);
|
||||
define('TABLE_CHART', $tableEscape . $config->db->prefix . 'chart' . $tableEscape);
|
||||
define('TABLE_PIVOT', $tableEscape . $config->db->prefix . 'pivot' . $tableEscape);
|
||||
define('TABLE_DASHBOARD', $tableEscape . $config->db->prefix . 'dashboard' . $tableEscape);
|
||||
define('TABLE_DATASET', $tableEscape . $config->db->prefix . 'dataset' . $tableEscape);
|
||||
define('TABLE_DATAVIEW', $tableEscape . $config->db->prefix . 'dataview' . $tableEscape);
|
||||
define('TABLE_DIMENSION', $tableEscape . $config->db->prefix . 'dimension' . $tableEscape);
|
||||
define('TABLE_SCENE', $tableEscape . $config->db->prefix . 'scene' . $tableEscape);
|
||||
define('VIEW_SCENECASE', '`ztv_scenecase' . $tableEscape);
|
||||
define('TABLE_SCREEN', '`' . $config->db->prefix . 'screen`');
|
||||
define('TABLE_CHART', '`' . $config->db->prefix . 'chart`');
|
||||
define('TABLE_PIVOT', '`' . $config->db->prefix . 'pivot`');
|
||||
define('TABLE_DASHBOARD', '`' . $config->db->prefix . 'dashboard`');
|
||||
define('TABLE_DATASET', '`' . $config->db->prefix . 'dataset`');
|
||||
define('TABLE_DATAVIEW', '`' . $config->db->prefix . 'dataview`');
|
||||
define('TABLE_DIMENSION', '`' . $config->db->prefix . 'dimension`');
|
||||
define('TABLE_SCENE', '`' . $config->db->prefix . 'scene`');
|
||||
define('VIEW_SCENECASE', '`ztv_scenecase`');
|
||||
|
||||
define('CHANGEVALUE', 100000000);
|
||||
|
||||
|
||||
+22
-1
@@ -1182,8 +1182,16 @@ CHANGE `editedBy` `editedBy` varchar(255) NOT NULL DEFAULT '',
|
||||
CHANGE `editedDate` `editedDate` date NULL;
|
||||
|
||||
ALTER TABLE `zt_traincontents`
|
||||
CHANGE `code` `code` varchar(50) NOT NULL DEFAULT '',
|
||||
CHANGE `name` `name` varchar(255) NOT NULL DEFAULT '',
|
||||
CHANGE `type` `type` varchar(30) NOT NULL DEFAULT '',
|
||||
CHANGE `desc` `desc` text NULL,
|
||||
CHANGE `order` `order` mediumint(8) NOT NULL DEFAULT '0',
|
||||
CHANGE `createdBy` `createdBy` char(30) NOT NULL DEFAULT '',
|
||||
CHANGE `createdDate` `createdDate` datetime NULL,
|
||||
CHANGE `editedBy` `editedBy` varchar(30) NOT NULL DEFAULT '',
|
||||
CHANGE `editedDate` `editedDate` datetime NULL;
|
||||
CHANGE `editedDate` `editedDate` datetime NULL,
|
||||
CHANGE `deleted` `deleted` tinyint(1) NOT NULL DEFAULT '0';
|
||||
|
||||
ALTER TABLE `zt_trainplan`
|
||||
CHANGE `editedBy` `editedBy` varchar(30) NOT NULL DEFAULT '',
|
||||
@@ -1290,6 +1298,19 @@ ALTER TABLE `zt_zoutput`
|
||||
CHANGE `editedBy` `editedBy` varchar(30) NOT NULL DEFAULT '',
|
||||
CHANGE `editedDate` `editedDate` datetime NULL;
|
||||
|
||||
ALTER TABLE `zt_traincategory`
|
||||
CHANGE `grade` `grade` tinyint(3) NOT NULL DEFAULT '0',
|
||||
CHANGE `order` `order` mediumint(8) NOT NULL DEFAULT '0';
|
||||
|
||||
ALTER TABLE `zt_file`
|
||||
CHANGE `pathname` `pathname` char(100) NOT NULL DEFAULT '',
|
||||
CHANGE `title` `title` varchar(255) NOT NULL DEFAULT '',
|
||||
CHANGE `extension` `extension` char(30) NOT NULL DEFAULT '',
|
||||
CHANGE `objectType` `objectType` char(30) NOT NULL DEFAULT '',
|
||||
CHANGE `objectID` `objectID` mediumint(9) NOT NULL DEFAULT '0',
|
||||
CHANGE `addedDate` `addedDate` datetime NULL,
|
||||
CHANGE `extra` `extra` varchar(255) NOT NULL DEFAULT '';
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `zt_docaction` (
|
||||
`id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`doc` mediumint(8) unsigned NOT NULL,
|
||||
|
||||
+245
-245
File diff suppressed because it is too large
Load Diff
@@ -10,3 +10,4 @@
|
||||
#hostory::-moz-scrollbar {height: 0px; width: 0px; background: transparent;}
|
||||
.main-col iframe {min-height: unset;}
|
||||
.bottom-btn-tree {display: none;}
|
||||
.main-col .doc-title .actions a > span {color: #9EA3B0;}
|
||||
|
||||
@@ -142,6 +142,7 @@ class personnelModel extends model
|
||||
{
|
||||
$user = zget($users, $account, '');
|
||||
|
||||
if(empty($user)) continue;
|
||||
if(!empty($user) and !isset($personnelList[$user->role])) $personnelList[$user->role] = array();
|
||||
|
||||
$personnelList[$user->role][$account]['realname'] = $user ? $user->realname : $account;
|
||||
|
||||
@@ -171,18 +171,18 @@ class productModel extends model
|
||||
if(defined('TUTORIAL')) return $productID;
|
||||
|
||||
if($productID == 0 and $this->cookie->preProductID and isset($products[$this->cookie->preProductID])) $productID = $this->cookie->preProductID;
|
||||
if($productID == 0 and $this->session->product == '') $productID = key($products);
|
||||
if($productID == 0 and $this->session->product == '') $productID = (int)key($products);
|
||||
$this->session->set('product', (int)$productID, $this->app->tab);
|
||||
|
||||
if(!isset($products[$this->session->product]))
|
||||
{
|
||||
$product = $this->getById($productID);
|
||||
|
||||
if(empty($product) or $product->deleted == 1) $productID = key($products);
|
||||
if(empty($product) or $product->deleted == 1) $productID = (int)key($products);
|
||||
$this->session->set('product', (int)$productID, $this->app->tab);
|
||||
if($productID && strpos(",{$this->app->user->view->products},", ",{$productID},") === false)
|
||||
{
|
||||
$productID = key($products);
|
||||
$productID = (int)key($products);
|
||||
$this->session->set('product', (int)$productID, $this->app->tab);
|
||||
$this->accessDenied($this->lang->product->accessDenied);
|
||||
}
|
||||
|
||||
@@ -113,8 +113,8 @@ class projectModel extends model
|
||||
if(defined('TUTORIAL')) return $projectID;
|
||||
|
||||
if($projectID == 0 and $this->cookie->lastProject) $projectID = $this->cookie->lastProject;
|
||||
if($projectID == 0 and (int)$this->session->project == 0) $projectID = key($projects);
|
||||
if($projectID == 0) $projectID = key($projects);
|
||||
if($projectID == 0 and (int)$this->session->project == 0) $projectID = (int)key($projects);
|
||||
if($projectID == 0) $projectID = (int)key($projects);
|
||||
|
||||
$this->session->set('project', (int)$projectID, $this->app->tab);
|
||||
|
||||
@@ -130,12 +130,12 @@ class projectModel extends model
|
||||
return $this->session->project;
|
||||
}
|
||||
|
||||
$this->session->set('project', key($projects), $this->app->tab);
|
||||
$this->session->set('project', (int)key($projects), $this->app->tab);
|
||||
$this->accessDenied();
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->session->set('project', key($projects), $this->app->tab);
|
||||
$this->session->set('project', (int)key($projects), $this->app->tab);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -5357,7 +5357,7 @@ class storyModel extends model
|
||||
{
|
||||
if(!$this->session->storyOnlyCondition)
|
||||
{
|
||||
preg_match_all('/' . TABLE_STORY .' AS ([\w]+) /', $this->session->storyQueryCondition, $matches);
|
||||
preg_match_all('/[`"]' . trim(TABLE_STORY, '`') .'[`"] AS ([\w]+) /', $this->session->storyQueryCondition, $matches);
|
||||
if(isset($matches[1][0])) return 'id in (' . preg_replace('/SELECT .* FROM/', "SELECT {$matches[1][0]}.id FROM", $this->session->storyQueryCondition) . ')';
|
||||
}
|
||||
return $this->session->storyQueryCondition;
|
||||
|
||||
Reference in New Issue
Block a user