From 0f3bebe0e214ba4b84c6e397a2fe451588bf223c Mon Sep 17 00:00:00 2001 From: wangzemei Date: Fri, 18 Oct 2024 18:30:30 +0800 Subject: [PATCH] * [bug] fix issues of questionType of thinkstepmenu widget. --- lib/zin/wg/thinkstepmenu/v1.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/zin/wg/thinkstepmenu/v1.php b/lib/zin/wg/thinkstepmenu/v1.php index 1386bef22c..eadf40fe3c 100644 --- a/lib/zin/wg/thinkstepmenu/v1.php +++ b/lib/zin/wg/thinkstepmenu/v1.php @@ -220,7 +220,7 @@ class thinkStepMenu extends wg 'innerClass' => 'text-gray opacity-50', 'hint' => $this->lang->thinkstep->tips->linkBlocks ); - $linkType = !empty($item->type == 'question') && isset($options->questionType) && ($options->questionType == 'checkbox' || $options->questionType === 'radio' || $options->questionType === 'multicolumn'); + $linkType = !empty($item->type == 'question') && isset($options->questionType) && in_array($options->questionType, array('checkbox', 'radio', 'multicolumn')); $menus = array_merge($menus, array( $canEdit ? array(