diff --git a/lib/base/filter/filter.class.php b/lib/base/filter/filter.class.php index c0bb4fed05..8db2523369 100644 --- a/lib/base/filter/filter.class.php +++ b/lib/base/filter/filter.class.php @@ -692,6 +692,12 @@ class baseValidater $methodName = $app->getMethodName(); $params = $app->getParams(); + if($moduleName == 'tutorial' and $methodName == 'wizard' and isset($params['module']) and isset($params['method'])) + { + $moduleName = $params['module']; + $methodName = $params['method']; + } + if($type == 'cookie') { $pagerCookie = 'pager' . ucfirst($moduleName) . ucfirst($methodName); diff --git a/module/bug/control.php b/module/bug/control.php index 00e55cdb57..6c4e7b16ed 100644 --- a/module/bug/control.php +++ b/module/bug/control.php @@ -627,7 +627,7 @@ class bug extends control $this->view->productName = isset($this->products[$productID]) ? $this->products[$productID] : ''; $this->view->moduleOptionMenu = $moduleOptionMenu; $this->view->stories = $stories; - $this->view->projects = defined('TUTORIAL') ? $this->loadModel('tutorial')->getProject() : $projects; + $this->view->projects = defined('TUTORIAL') ? $this->loadModel('tutorial')->getProjectPairs() : $projects; $this->view->project = $project; $this->view->executions = defined('TUTORIAL') ? $this->loadModel('tutorial')->getExecutionPairs() : $executions; $this->view->builds = $builds; diff --git a/module/common/model.php b/module/common/model.php index c33873e3f0..123f2feb1d 100644 --- a/module/common/model.php +++ b/module/common/model.php @@ -957,7 +957,17 @@ class commonModel extends model $item->moduleName = $currentModule; $item->methodName = $currentMethod; $item->vars = $vars; - $item->url = helper::createLink($currentModule, $currentMethod, $vars, '', 0, 0, 1); + + $isTutorialMode = commonModel::isTutorialMode(); + if($isTutorialMode && $currentModule == 'project') + { + if(!empty($vars)) $vars = helper::safe64Encode($vars); + $item->url = helper::createLink('tutorial', 'wizard', "module={$currentModule}&method={$currentMethod}¶ms=$vars", '', 0, 0, 1); + } + else + { + $item->url = helper::createLink($currentModule, $currentMethod, $vars, '', 0, 0, 1); + } $items[] = $item; } diff --git a/module/execution/view/all.html.php b/module/execution/view/all.html.php index dedbc0c5ee..51054d063e 100644 --- a/module/execution/view/all.html.php +++ b/module/execution/view/all.html.php @@ -57,7 +57,7 @@ createLink('programplan', 'create', "projectID=$projectID&productID=$productID"), " " . $lang->programplan->create, '', "class='btn btn-info'");?> - createLink('execution', 'create', "projectID=$projectID"), " " . ((($from == 'execution') and ($config->systemMode == 'new')) ? $lang->execution->createExec : $lang->execution->create), '', "class='btn btn-info' data-app='execution'");?> + createLink('execution', 'create', "projectID=$projectID"), " " . ((($from == 'execution') and ($config->systemMode == 'new')) ? $lang->execution->createExec : $lang->execution->create), '', "class='btn btn-info' data-app='execution' onclick='$(this).data(\"toggle\", \"\")'");?>

diff --git a/module/execution/view/task.html.php b/module/execution/view/task.html.php index a45516db5d..b236d6092d 100644 --- a/module/execution/view/task.html.php +++ b/module/execution/view/task.html.php @@ -149,7 +149,15 @@ body {margin-bottom: 25px;}