From a5bf4792a63e8e7bfd9bae856faa16a7302ae2c5 Mon Sep 17 00:00:00 2001 From: Zhangyu Date: Mon, 21 Oct 2024 02:18:27 +0000 Subject: [PATCH] * [bug] compatible with historical data of thinkstepmenu. --- 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 eadf40fe3c..494e7a66ed 100644 --- a/lib/zin/wg/thinkstepmenu/v1.php +++ b/lib/zin/wg/thinkstepmenu/v1.php @@ -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'],