* Rename the privilege of custom-limitTaskDate.

This commit is contained in:
hufangzhou
2023-04-19 09:18:07 +08:00
parent 4a52236e2b
commit f9f5c459e9
6 changed files with 7 additions and 3 deletions
+1
View File
@@ -62,6 +62,7 @@ $lang->custom->percent = $lang->stage->percent;
$lang->custom->setPercent = "Enable or Disable {$lang->stage->percent}";
$lang->custom->beginAndEndDate = 'Begin & End';
$lang->custom->beginAndEndDateRange = 'The Range Of Begin & End';
$lang->custom->limitTaskDateAction = 'Set start and end date required';
$lang->custom->unitList['efficiency'] = 'Working Hours/';
$lang->custom->unitList['manhour'] = 'Man-hour/';
+1
View File
@@ -62,6 +62,7 @@ $lang->custom->percent = $lang->stage->percent;
$lang->custom->setPercent = "Enable or Disable {$lang->stage->percent}";
$lang->custom->beginAndEndDate = 'Begin & End';
$lang->custom->beginAndEndDateRange = 'The Range Of Begin & End';
$lang->custom->limitTaskDateAction = 'Set start and end date required';
$lang->custom->unitList['efficiency'] = 'Working Hours/';
$lang->custom->unitList['manhour'] = 'Man-hour/';
+1
View File
@@ -62,6 +62,7 @@ $lang->custom->percent = $lang->stage->percent;
$lang->custom->setPercent = "Enable or Disable {$lang->stage->percent}";
$lang->custom->beginAndEndDate = 'Begin & End';
$lang->custom->beginAndEndDateRange = 'The Range Of Begin & End';
$lang->custom->limitTaskDateAction = 'Set start and end date required';
$lang->custom->unitList['efficiency'] = 'Working Hours/';
$lang->custom->unitList['manhour'] = 'Man-hour/';
+1
View File
@@ -62,6 +62,7 @@ $lang->custom->percent = $lang->stage->percent;
$lang->custom->setPercent = "是否启用{$lang->stage->percent}";
$lang->custom->beginAndEndDate = '起止日期';
$lang->custom->beginAndEndDateRange = '起止日期范围';
$lang->custom->limitTaskDateAction = '设置起止日期必填';
$lang->custom->unitList['efficiency'] = '工时/';
$lang->custom->unitList['manhour'] = '人时/';
+1 -1
View File
@@ -1448,7 +1448,7 @@ $lang->resource->custom->kanban = 'kanban';
$lang->resource->custom->code = 'code';
$lang->resource->custom->hours = 'hours';
$lang->resource->custom->percent = 'percent';
$lang->resource->custom->limitTaskDate = 'beginAndEndDate';
$lang->resource->custom->limitTaskDate = 'limitTaskDateAction';
$lang->custom->methodOrder[10] = 'set';
$lang->custom->methodOrder[15] = 'product';
+2 -2
View File
@@ -1289,7 +1289,7 @@ class groupModel extends model
foreach($views as $moduleMenu)
{
$viewID = 0;
if($moduleMenu != 'general')
if($moduleMenu != 'general' and isset($this->lang->mainNav->{$moduleMenu}))
{
if(!$hasStored)
{
@@ -1332,7 +1332,7 @@ class groupModel extends model
if(!$hasStored)
{
$moduleData = new stdclass();
$moduleData->parent = $viewID;
$moduleData->parent = (isset($this->lang->navGroup->{$moduleName}) and !in_array($moduleMenu, array('misc', 'conference'))) ? $viewPairs[$moduleMenu] : 0;
$moduleData->code = $moduleName;
$moduleData->type = 'module';
$moduleData->order = $moduleOrder * 10;