#14: Bulk update now directs back to the page you're currently on
This commit is contained in:
parent
68df0797d0
commit
86954effbf
@ -393,7 +393,7 @@ class PhotoController extends Controller
|
||||
|
||||
$request->session()->flash('success', trans_choice('admin.bulk_photos_changed', $numberChanged, ['number' => $numberChanged]));
|
||||
|
||||
return redirect(route('albums.show', array('id' => $albumId)));
|
||||
return redirect(route('albums.show', array('id' => $albumId, 'page' => $request->get('page', 1))));
|
||||
}
|
||||
|
||||
private function applyBulkActions(Request $request, Album $album)
|
||||
|
@ -11,7 +11,7 @@
|
||||
@endif
|
||||
</div>
|
||||
@else
|
||||
<form action="{{ route('photos.updateBulk', [$album->id]) }}" method="POST">
|
||||
<form action="{{ route('photos.updateBulk', [$album->id, 'page' => Request::get('page', 1)]) }}" method="POST">
|
||||
{{ csrf_field() }}
|
||||
{{ method_field('PUT') }}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user