diff --git a/framework/base/router.class.php b/framework/base/router.class.php index f7880ebf23..20a685956b 100644 --- a/framework/base/router.class.php +++ b/framework/base/router.class.php @@ -3455,11 +3455,13 @@ class baseRouter */ public function checkInstalled() { - if(!isset($this->config->installed) || !$this->config->installed) return false; - if(($this->config->inContainer || $this->config->inQuickon) && !$this->getInstalledVersion()) return false; + $installed = true; + if(!isset($this->config->installed) || !$this->config->installed) $installed = false; + if(($this->config->inContainer || $this->config->inQuickon) && !$this->getInstalledVersion()) $installed = false; - if(!isset($_SESSION['installing'])) $_SESSION['installing'] = true; - return true; + if(!isset($_SESSION['installing']) && !$installed && !empty($this->installing)) $_SESSION['installing'] = true; + + return $installed; } } diff --git a/module/block/control.php b/module/block/control.php index 1448695eec..2cd6b208d5 100755 --- a/module/block/control.php +++ b/module/block/control.php @@ -58,6 +58,7 @@ class block extends control $this->view->title = zget($this->lang->block->dashboard, $dashboard, $this->lang->block->dashboard['default']); $this->view->blocks = $blocks; + $this->view->projectID = $projectID; $this->view->dashboard = $dashboard; $this->display(); } diff --git a/module/testtask/control.php b/module/testtask/control.php index 0aab41a548..ece025a05e 100644 --- a/module/testtask/control.php +++ b/module/testtask/control.php @@ -399,7 +399,7 @@ class testtask extends control $this->app->loadClass('pager', $static = true); $pager = pager::init($recTotal, $recPerPage, $pageID); $queryID = ($browseType == 'bysearch' or $browseType == 'bysuite') ? $param : 0; - $moduleID = ($browseType == 'bymodule') ? $param : ($browseType == 'bysearch' ? 0 : ($this->cookie->taskCaseModule ?: 0)); + $moduleID = ($browseType == 'bymodule') ? $param : ($browseType == 'bysearch' ? 0 : ((int)$this->cookie->taskCaseModule ?: 0)); $sort = common::appendOrder($orderBy, 't2.id'); $sort = str_replace('case_', 'id_', $sort); diff --git a/module/todo/control.php b/module/todo/control.php index dbd16c181f..114a7faf4d 100755 --- a/module/todo/control.php +++ b/module/todo/control.php @@ -399,7 +399,7 @@ class todo extends control if($todo->type == 'feedback') $tab = 'feedback'; if(in_array($todo->type, array('issue', 'risk'))) $tab = 'project'; - return $this->send(array('result' => 'success', 'callback' => "zui.Modal.confirm({message: '{$message}', icon: 'icon-exclamation-sign', iconClass: 'warning-pale rounded-full icon-2x'}).then((res) => {if(res) openPage('{$confirmURL}', '{$tab}');});")); + return $this->send(array('result' => 'success', 'callback' => "zui.Modal.confirm({message: '{$message}', icon: 'icon-exclamation-sign', iconClass: 'warning-pale rounded-full icon-2x'}).then((res) => {if(res) openPage('{$confirmURL}', '{$tab}'); else loadCurrentPage();});")); } if(defined('RUN_MODE') && RUN_MODE == 'api')