* [bug] fix issues of questionType of thinkstepmenu widget.

This commit is contained in:
wangzemei
2024-10-18 19:35:33 +08:00
committed by 孙浩
parent 1d16c6ac4a
commit 0f3bebe0e2
+1 -1
View File
@@ -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(