Merge branch 'zentaopms_261_bug_#29653' into 'master'

* Fix bug #29653.

See merge request easycorp/zentaopms!6244
This commit is contained in:
王怡栋
2022-11-18 07:18:49 +00:00
+2 -1
View File
@@ -1608,7 +1608,8 @@ class execution extends control
*/
public function create($projectID = '', $executionID = 0, $copyExecutionID = '', $planID = 0, $confirm = 'no', $productID = 0, $extra = '')
{
if($this->app->tab == 'doc') unset($this->lang->doc->menu->execution['subMenu']);
if($this->app->tab == 'doc') unset($this->lang->doc->menu->execution['subMenu']);
if($this->app->tab == 'project') $this->project->setMenu($projectID);
$project = $this->project->getByID($projectID);
if(!empty($project) and $project->model == 'kanban')