* [task#131074] modify the entry for block association.

This commit is contained in:
wangzemei
2024-11-01 14:30:59 +08:00
committed by 谢杞钰
parent 0af1ddea9b
commit 1540ea90c0
2 changed files with 2 additions and 4 deletions
+1 -1
View File
@@ -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
(
+1 -3
View File
@@ -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'],