diff --git a/module/execution/ui/ajaxgetdropmenu.html.php b/module/execution/ui/ajaxgetdropmenu.html.php index 69c02b3982..a1ac5ab826 100644 --- a/module/execution/ui/ajaxgetdropmenu.html.php +++ b/module/execution/ui/ajaxgetdropmenu.html.php @@ -60,6 +60,7 @@ foreach($projectExecutions as $projectID => $executions) if($execution->type == 'stage') $item['url'] = helper::createLink('execution', 'task', "executionID={$execution->id}"); if($execution->type == 'kanban') $item['url'] = helper::createLink('execution', 'kanban', "execution={$execution->id}"); + if(strpos($link, 'ajaxSwitchBelong') !== false) $item['url'] = sprintf($link, $execution->id); if(!isset($data[$group][$projectID])) $data[$group][$projectID] = $projectItem; $data[$group][$projectID]['items'][] = $item; diff --git a/module/program/model.php b/module/program/model.php index 2059178004..32f7e0a4af 100644 --- a/module/program/model.php +++ b/module/program/model.php @@ -1423,7 +1423,7 @@ class programModel extends model * @access public * @return void */ - public function setMenu($programID) + public function setMenu(int $programID) { $this->lang->switcherMenu = $this->getSwitcher($programID); common::setMenuVars('program', $programID); @@ -1436,7 +1436,7 @@ class programModel extends model * @access private * @return string */ - public function getSwitcher($programID = 0) + public function getSwitcher(int $programID = 0) { $currentProgramName = ''; $currentModule = $this->app->moduleName;