mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 03:57:22 +08:00
[admin] delete exam also delete user and progress
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user