From a4fd0775ad314f8974a2ebd8c14694cccf613625 Mon Sep 17 00:00:00 2001 From: zhouxin Date: Fri, 10 Dec 2021 06:07:26 +0000 Subject: [PATCH] Finish task #45795. --- module/design/control.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/module/design/control.php b/module/design/control.php index bf52899e33..0d0efc30d9 100644 --- a/module/design/control.php +++ b/module/design/control.php @@ -77,9 +77,12 @@ class design extends control /* Print top and right actions. */ $this->lang->TRActions = '
'; - $this->lang->TRActions .= '
'; - $this->lang->TRActions .= html::a($this->createLink('review', 'create', "projectID=$projectID"), " {$this->lang->design->createReview}", '', "class='btn btn-secondary'"); - $this->lang->TRActions .= '
'; + if($this->config->maxVersion) + { + $this->lang->TRActions .= '
'; + $this->lang->TRActions .= html::a($this->createLink('design', 'submit', "productID=$productID", '', true), " {$this->lang->design->createReview}", '', "class='btn btn-secondary iframe'"); + $this->lang->TRActions .= '
'; + } $this->lang->TRActions .= '