Add multi-variant test sets
This commit is contained in:
@@ -11,6 +11,12 @@ class SetController extends FormController
|
||||
protected $view_item = 'set';
|
||||
protected $view_list = 'sets';
|
||||
|
||||
public function addvariant(): void
|
||||
{
|
||||
$parentId = $this->input->getInt('parent_id');
|
||||
$this->setRedirect('index.php?option=com_testquestions&view=set&layout=edit&parent_id=' . $parentId);
|
||||
}
|
||||
|
||||
public function cancel($key = null)
|
||||
{
|
||||
$this->setRedirect('index.php?option=com_testquestions&view=sets');
|
||||
|
||||
Reference in New Issue
Block a user