#14: Bulk update now directs back to the page you're currently on

This commit is contained in:
Andy Heathershaw 2017-09-04 20:56:30 +01:00
parent 68df0797d0
commit 86954effbf
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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') }}