Persist test results
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user