* Use modal instead of new page in my module.

This commit is contained in:
zhujinyong
2021-03-30 14:20:32 +08:00
parent e4a9dcd7e1
commit 8f41f85451
6 changed files with 7 additions and 14 deletions
+2 -2
View File
@@ -251,13 +251,13 @@ class task extends control
die(js::locate($this->createLink('execution', 'task', "executionID=$executionID")));
}
$execution = $this->execution->getById($executionID);
if($this->config->systemMode == 'new')
{
$project = $this->project->getByID($this->session->project);
$project = $this->project->getByID($execution->project);
if($project->model == 'waterfall') $this->config->task->create->requiredFields .= ',estStarted,deadline';
}
$execution = $this->execution->getById($executionID);
if($this->app->openApp == 'my')
{
$taskLink = $this->createLink('my', 'work', 'mode=task');