diff --git a/module/mr/view/header.review.html.php b/module/mr/view/header.review.html.php index 6aba0f3430..326a5ae803 100644 --- a/module/mr/view/header.review.html.php +++ b/module/mr/view/header.review.html.php @@ -6,7 +6,7 @@ $lastReview = $this->mr->getLastReviewInfo($file); $repoModule = isset($lastReview) && isset($lastReview->module) ? $lastReview->module : ''; /* Get product pairs. */ -if($repo->product) +if(isset($repo->product) and $repo->product) { $products = $this->dao->select('id,name')->from(TABLE_PRODUCT)->where('`id`')->in($repo->product)->fetchPairs(); } diff --git a/module/mr/view/view.html.php b/module/mr/view/view.html.php index 5a43805908..38f66b4021 100644 --- a/module/mr/view/view.html.php +++ b/module/mr/view/view.html.php @@ -1,16 +1,26 @@ -id)) : ?> +id)): ?>

mr->notFound; ?> - + createLink('mr', 'create'), " " . $lang->mr->create, '', "class='btn btn-info'"); ?>

- + +id)): ?> +
+
+

+ mr->notFound; ?> + createLink('mr', 'browse'), " " . $lang->mr->browse, '', "class='btn btn-info'"); ?> +

+
+
+
createLink('mr', 'browse'), ' ' . $lang->goback, '', "class='btn btn-secondary'"); ?>