From 685ec75d0c6868610612a19c45f8e746910c3ca3 Mon Sep 17 00:00:00 2001 From: Miguel N Date: Wed, 27 Jan 2021 02:31:57 +0000 Subject: [PATCH] Reverse --- app/Http/Controllers/FormController.php | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/app/Http/Controllers/FormController.php b/app/Http/Controllers/FormController.php index 7c22a0f..98d82a0 100755 --- a/app/Http/Controllers/FormController.php +++ b/app/Http/Controllers/FormController.php @@ -83,22 +83,6 @@ class FormController extends Controller { $this->authorize('delete', $form); - $request->session()->put('pendingObjectID', $form->id); - $request->session()->put('openConfirmationDialog', true); - - return redirect()->back(); - - } - - public function performConfirmedDeletion(Request $request, Form $form) - { - $this->authorize('delete', $form); - if (!$request->has('confirmed') && $request->confirmed !== 'yes') - { - $request->session()->flash('error', 'You must confirm this action.'); - return redirect()->back(); - } - $deletable = true; if (! is_null($form) && ! is_null($form->vacancies) && $form->vacancies->count() !== 0 || ! is_null($form->responses)) { @@ -113,10 +97,8 @@ class FormController extends Controller $request->session()->flash('error', 'You cannot delete this form because it\'s tied to one or more applications and ranks, or because it doesn\'t exist.'); } - $request->session()->forget('pendingObjectID'); - $request->session()->forget('openConfirmationDialog'); - return redirect()->back(); + } public function preview(Request $request, Form $form)