Fix redirect call after delete/undelete

This commit is contained in:
Deon George 2024-10-04 14:39:56 +10:00
parent 3b207dbf7f
commit ae1c8cbc28
3 changed files with 6 additions and 6 deletions

View File

@ -17,7 +17,7 @@ class PhotoController extends Controller
$o->save(); $o->save();
return redirect() return redirect()
->action('PhotoController@info',[$o->id]); ->back();
} }
public function deletes(Request $request,$id=NULL) public function deletes(Request $request,$id=NULL)
@ -60,7 +60,7 @@ class PhotoController extends Controller
$o->save(); $o->save();
return redirect() return redirect()
->action('PhotoController@info',[$o->id]); ->back();
} }
/** /**

View File

@ -18,7 +18,7 @@ class VideoController extends Controller
$o->save(); $o->save();
return redirect() return redirect()
->action('VideoController@info',[$o->id]); ->back();
} }
public function deletes(Request $request,$id=NULL) public function deletes(Request $request,$id=NULL)
@ -55,7 +55,7 @@ class VideoController extends Controller
$o->save(); $o->save();
return redirect() return redirect()
->action('VideoController@info',[$o->id]); ->back();
} }
public function view(Video $o) public function view(Video $o)

View File

@ -38,7 +38,7 @@ trait Multimedia
return redirect() return redirect()
->action( ->action(
[$this->controller($request->input('type')),'deletes'], [$this->controller($request->input('type')),'deletes'],
['page' => $request->input('page')] ['page'=>$request->input('page')]
); );
} }
@ -50,7 +50,7 @@ trait Multimedia
return redirect() return redirect()
->action( ->action(
[$this->controller($request->input('type')),'duplicates'], [$this->controller($request->input('type')),'duplicates'],
['page' => $request->input('page')] ['page'=>$request->input('page')]
); );
} }