Persist test results

This commit is contained in:
Wojtek
2026-10-15 20:43:52 +02:00
parent 3eabeebf6b
commit ceb6a6c6ef
7 changed files with 68 additions and 2 deletions
@@ -30,6 +30,14 @@ class HtmlView extends BaseHtmlView
&& $input->post->getInt('set_id', 0) > 0;
$this->results = $this->buildResults($this->items);
if ($this->results) {
$this->getModel()->saveResult(
$input->post->getString('participant_name', ''),
$input->post->getInt('extra_time', 0),
$this->results
);
}
return parent::display($tpl);
}