From 895262511021e01736d25bca5a23574d129bcd05 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Thu, 20 Jun 2024 11:05:35 +0800 Subject: [PATCH] * use var to add divder for toolbar. --- module/story/ui/view.html.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/story/ui/view.html.php b/module/story/ui/view.html.php index 21a21598ee..ea661009f9 100644 --- a/module/story/ui/view.html.php +++ b/module/story/ui/view.html.php @@ -182,7 +182,7 @@ $this->loadModel('repo'); $hasRepo = $this->repo->getListByProduct($story->product, implode(',', $config->repo->gitServiceTypeList), 1); $actions = $story->deleted ? array() : $this->loadModel('common')->buildOperateMenu($story); $hasDivider = !empty($actions['mainActions']) && !empty($actions['suffixActions']); -if(!empty($actions)) $actions = array_merge($actions['mainActions'], array(array('type' => 'divider')), $actions['suffixActions']); +if(!empty($actions)) $actions = array_merge($actions['mainActions'], $hasDivider ? array(array('type' => 'divider')) : array(), $actions['suffixActions']); foreach($actions as $key => $action) {