From e23c5ed17b00bb3adb56aca325c23b76d5cffe81 Mon Sep 17 00:00:00 2001 From: Zhangyu Date: Mon, 14 Oct 2024 08:29:54 +0000 Subject: [PATCH] * [bug] modify link button dispaly of thinkstepmenu. --- lib/zin/wg/thinkstepmenu/v1.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/zin/wg/thinkstepmenu/v1.php b/lib/zin/wg/thinkstepmenu/v1.php index 4c90d34607..b8ddffd1e7 100644 --- a/lib/zin/wg/thinkstepmenu/v1.php +++ b/lib/zin/wg/thinkstepmenu/v1.php @@ -220,6 +220,7 @@ class thinkStepMenu extends wg 'innerClass' => 'text-gray opacity-50', 'hint' => $this->lang->thinkstep->tips->linkBlocks ); + $linkType = !empty($item->type == 'question') && ($options->questionType == 'checkbox' || $options->questionType === 'radio' || $options->questionType === 'multicolumn'); $menus = array_merge($menus, array( $canEdit ? array( @@ -229,7 +230,7 @@ class thinkStepMenu extends wg 'url' => createLink('thinkstep', 'edit', "marketID={$marketID}&stepID={$item->id}") ) : null, $canDelete ? $deleteItem : null, - $wizard->model === '3c' && $item->type == 'question' && $canLink ? $linkItem : null + $wizard->model === '3c' && $linkType && $canLink ? $linkItem : null ), $transitionAction); if($canCreate && (($showQuestionOfNode && $item->type == 'node') || $item->hasSameQuestion || $item->type == 'question')) $menus = array_merge($menus, array(