BLUE-12: Fixed a bug where the album title/description weren't updating when changing an existing album

This commit is contained in:
Andy Heathershaw 2016-10-30 15:51:48 +00:00
parent 21ef4de5c9
commit e3d3d4d8be

View File

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