* Fix bug and execution menu.

This commit is contained in:
Yagami
2021-03-09 10:05:34 +08:00
parent fd707d15a8
commit 0f1492cad9
47 changed files with 356 additions and 365 deletions
+4 -4
View File
@@ -56,8 +56,8 @@ class baseHelper
* @param string|array $vars the params passed to the method, can be array('key' => 'value') or key1=value1&key2=value2) or key1=value1&key2=value2
* @param string $viewType the view type
* @param bool $onlyBody pass onlyBody=yes to the link thus the app can control the header and footer hide or show..
* @param bool $projectID set project id in to session.
* @param bool $removeProject if true, remove project param.
* @param bool $projectID set project id in to session.
* @param bool $removeProject if true, remove project param.
* @static
* @access public
* @return string the link string.
@@ -173,8 +173,8 @@ class baseHelper
global $config, $lang;
if(!$projectID || $removeProject) return $link;
$isProject = (zget($lang->navGroup, $moduleName) == 'project');
if(!$isProject and $moduleName != 'program') return $link;
$app = zget($lang->navGroup, $moduleName);
if($app != 'project' and $app != 'execution') return $link;
$link .= strpos($link, '?') === false ? "?project=$projectID" : "&project=$projectID";
return $link;