diff --git a/config/zentaopms.php b/config/zentaopms.php index 749e58711d..7ddfc719c9 100644 --- a/config/zentaopms.php +++ b/config/zentaopms.php @@ -563,6 +563,7 @@ $config->objectTables['instance'] = TABLE_INSTANCE; $config->objectTables['space'] = TABLE_SPACE; $config->objectTables['solution'] = TABLE_SOLUTION; $config->objectTables['artifactrepo'] = TABLE_ARTIFACTREPO; +$config->objectTables['metric'] = TABLE_METRIC; $config->newFeatures = array('introduction', 'tutorial', 'youngBlueTheme', 'visions'); $config->disabledFeatures = ''; diff --git a/module/metric/control.php b/module/metric/control.php index d73dfe5b4a..a0a20640bb 100755 --- a/module/metric/control.php +++ b/module/metric/control.php @@ -148,6 +148,7 @@ class metric extends control $this->view->createEditInfo = $this->metricZen->getCreateEditInfo($this->view); $this->view->actions = $this->loadModel('action')->getList('metric', $metricID); $this->view->users = $this->loadModel('user')->getPairs('noletter'); + $this->view->preAndNext = $this->loadModel('common')->getPreAndNextObject('metric', $metricID); $this->display(); } diff --git a/module/metric/ui/view.html.php b/module/metric/ui/view.html.php index 86ba0bdbb7..eab4f37da4 100644 --- a/module/metric/ui/view.html.php +++ b/module/metric/ui/view.html.php @@ -146,4 +146,13 @@ detailBody ) ); +if(!isInModal()) +{ + floatPreNextBtn + ( + !empty($preAndNext->pre) ? set::preLink(createLink('metric', 'view', "id={$preAndNext->pre->id}")) : null, + !empty($preAndNext->next) ? set::nextLink(createLink('metric', 'view', "id={$preAndNext->next->id}")) : null + ); +} + render();