diff --git a/lib/zin/wg/thinknode/v1.php b/lib/zin/wg/thinknode/v1.php index 9479422939..e077d49399 100644 --- a/lib/zin/wg/thinknode/v1.php +++ b/lib/zin/wg/thinknode/v1.php @@ -20,20 +20,20 @@ class thinkNode extends wg set::type($item->type), set::title($item->title), set::desc($item->desc), + set::item($item), ); } else { $item->options = null; - if($item == 'node') return thinkNode(set($this->getRestProps())); - if($type == 'transition') return thinkTransition(set($this->getRestProps())); - if($type == 'question') + if($item->type == 'question') { $questionType = zget($item, 'questionType', 'radio'); if($questionType == 'radio') return thinkRadio(set($this->getRestProps())); if($questionType == 'checkbox') return thinkCheckbox(set($this->getRestProps())); } + return thinkStep(set($this->getRestProps())); } }