* Add ignore method judgmen.

This commit is contained in:
leiyong
2020-09-22 09:28:26 +08:00
parent a96d77624e
commit 1bd79085aa
+2 -1
View File
@@ -787,7 +787,8 @@ class programModel extends model
*/
public function getPRJSwitcher($projectID, $currentModule, $currentMethod)
{
if($currentMethod == 'prjbrowse') return $this->getPRJCommonAction();
$ignoreMethod = array('prjbrowse', 'prjcreate', 'prjedit');
if(in_array($currentMethod, $ignoreMethod)) return $this->getPRJCommonAction();
$this->getPRJCommonAction();
$this->loadModel('project');