BLUE-12: Fixed a bug where the album title/description weren't updating when changing an existing album
This commit is contained in:
parent
21ef4de5c9
commit
e3d3d4d8be
@ -226,7 +226,7 @@ class AlbumController extends Controller
|
|||||||
$this->authorize('admin-access');
|
$this->authorize('admin-access');
|
||||||
|
|
||||||
$album = $this->loadAlbum($id);
|
$album = $this->loadAlbum($id);
|
||||||
$album->fill(['name', 'description']);
|
$album->fill($request->only(['name', 'description']));
|
||||||
$album->is_private = (strtolower($request->get('is_private')) == 'on');
|
$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
|
// These keys are optional and may or may not be in the request, depending on the page requesting it
|
||||||
|
Loading…
Reference in New Issue
Block a user