* [bug] compatible with historical data of thinkstepmenu.

This commit is contained in:
Zhangyu
2024-10-21 10:21:58 +08:00
committed by 孙浩
parent 5c36278cf1
commit a5bf4792a6
+1 -1
View File
@@ -205,7 +205,7 @@ class thinkStepMenu extends wg
);
$options = $item->type === 'question' ? json_decode($item->options) : null;
$linkType = !empty($options) && ($options->questionType == 'checkbox' || $options->questionType === 'radio' || $options->questionType === 'multicolumn');
$linkItem = ($canLink && $linkType && $options->required) ? array(
$linkItem = ($canLink && $linkType && !empty($options->required)) ? array(
'key' => 'linkNode',
'icon' => 'link',
'text' => $this->lang->thinkstep->actions['link'],