diff --git a/lib/zin/wg/thinkstep/v1.php b/lib/zin/wg/thinkstep/v1.php index b4cf3cc703..60ac90a24f 100644 --- a/lib/zin/wg/thinkstep/v1.php +++ b/lib/zin/wg/thinkstep/v1.php @@ -45,7 +45,7 @@ class thinkStep extends wg $canEdit = common::hasPriv('thinkstep', 'edit'); $canDelete = common::hasPriv('thinkstep', 'delete'); $linkmodel = !$isRun && in_array($wizard->model, $config->thinkwizard->venn); - $canLink = common::hasPriv('thinkstep', 'link') && $linkmodel; + $canLink = common::hasPriv('thinkstep', 'link') && $linkmodel && $basicType == 'question'; return div ( diff --git a/lib/zin/wg/thinkstepmenu/v1.php b/lib/zin/wg/thinkstepmenu/v1.php index 8833c5e772..9b0ed39467 100644 --- a/lib/zin/wg/thinkstepmenu/v1.php +++ b/lib/zin/wg/thinkstepmenu/v1.php @@ -204,9 +204,7 @@ class thinkStepMenu extends wg 'innerClass' => 'text-gray opacity-50', 'hint' => $item->existNotNode ? $this->lang->thinkstep->cannotDeleteNode : $this->lang->thinkstep->cannotDeleteQuestion, ); - $options = $item->type === 'question' ? json_decode($item->options) : null; - $linkType = !empty($options) && ($options->questionType == 'checkbox' || $options->questionType === 'radio' || $options->questionType === 'multicolumn'); - $linkItem = ($canLink && $linkType) ? array( + $linkItem = ($canLink && $item->type === 'question') ? array( 'key' => 'linkNode', 'icon' => 'link', 'text' => $this->lang->thinkstep->actions['link'],