Add multi-variant test sets

This commit is contained in:
Wojtek
2026-10-16 10:12:26 +02:00
parent 6ff21ef245
commit 8cc1862178
13 changed files with 176 additions and 7 deletions
@@ -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));