[admin] delete exam also delete user and progress

This commit is contained in:
xiaomlove
2022-08-21 16:37:22 +08:00
parent a174425e70
commit 9534dcead6
3 changed files with 15 additions and 9 deletions
@@ -14,7 +14,6 @@ class CreateExam extends CreateRecord
public function create(bool $another = false): void
{
$data = $this->form->getState();
// dd($data);
$examRep = new ExamRepository();
try {
$this->record = $examRep->store($data);
@@ -28,9 +27,10 @@ class CreateExam extends CreateRecord
return;
}
$this->redirect($this->getRedirectUrl());
$this->redirect($this->getResource()::getUrl('index'));
} catch (\Exception $exception) {
$this->notify('danger', $exception->getMessage());
}
}
}