Add multi-variant test sets
This commit is contained in:
@@ -14,6 +14,7 @@ class HtmlView extends BaseHtmlView
|
||||
protected $item;
|
||||
protected $questions;
|
||||
protected $categories;
|
||||
protected $variants;
|
||||
|
||||
public function display($tpl = null)
|
||||
{
|
||||
@@ -21,6 +22,7 @@ class HtmlView extends BaseHtmlView
|
||||
$this->item = $this->get('Item');
|
||||
$this->questions = $this->get('Questions');
|
||||
$this->categories = $this->get('Categories');
|
||||
$this->variants = $this->item && (int) $this->item->id > 0 ? $this->get('Variants') : [];
|
||||
|
||||
if (count($errors = $this->get('Errors'))) {
|
||||
throw new \RuntimeException(implode("\n", $errors));
|
||||
|
||||
Reference in New Issue
Block a user