From e3d3d4d8beec8448f3f2977a513d44f70b1c6f01 Mon Sep 17 00:00:00 2001 From: Andy Heathershaw Date: Sun, 30 Oct 2016 15:51:48 +0000 Subject: [PATCH] BLUE-12: Fixed a bug where the album title/description weren't updating when changing an existing album --- app/Http/Controllers/Admin/AlbumController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Admin/AlbumController.php b/app/Http/Controllers/Admin/AlbumController.php index ab556e7..9377fce 100644 --- a/app/Http/Controllers/Admin/AlbumController.php +++ b/app/Http/Controllers/Admin/AlbumController.php @@ -226,7 +226,7 @@ class AlbumController extends Controller $this->authorize('admin-access'); $album = $this->loadAlbum($id); - $album->fill(['name', 'description']); + $album->fill($request->only(['name', 'description'])); $album->is_private = (strtolower($request->get('is_private')) == 'on'); // These keys are optional and may or may not be in the request, depending on the page requesting it