This commit is contained in:
mayue
2022-05-25 01:56:04 +00:00
parent 4157c6041b
commit 33730f3787
+9 -9
View File
@@ -2482,15 +2482,6 @@ class projectModel extends model
global $lang;
$project = $this->getByID($objectID);
if(isset($project->model) and $project->model == 'waterfall')
{
global $lang;
$this->loadModel('execution');
$lang->executionCommon = $lang->project->stage;
include $this->app->getModulePath('', 'execution') . 'lang/' . $this->app->getClientLang() . '.php';
}
$model = 'scrum';
if($project) $model = $project->model;
@@ -2507,6 +2498,15 @@ class projectModel extends model
$this->loadModel('common')->resetProjectPriv($objectID);
if(!$this->common->isOpenMethod($moduleName, $methodName) and !commonModel::hasPriv($moduleName, $methodName)) $this->common->deny($moduleName, $methodName, false);
if(isset($project->model) and $project->model == 'waterfall')
{
global $lang;
$this->loadModel('execution');
$lang->executionCommon = $lang->project->stage;
include $this->app->getModulePath('', 'execution') . 'lang/' . $this->app->getClientLang() . '.php';
}
$this->lang->switcherMenu = $this->getSwitcher($objectID, $this->app->rawModule, $this->app->rawMethod);
$this->saveState($objectID, $this->getPairsByProgram());