* [task#131074] modify the entry for block association.
This commit is contained in:
@@ -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
|
||||
(
|
||||
|
||||
@@ -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'],
|
||||
|
||||
Reference in New Issue
Block a user