From: David ‘Bombe’ Roden Date: Thu, 30 Jul 2015 20:25:10 +0000 (+0200) Subject: Store the real album object in the template context X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=feb88c76e5e2f4d20141a6dabc204771f24e0bcb;p=Sone.git Store the real album object in the template context --- diff --git a/src/main/java/net/pterodactylus/sone/web/DeleteAlbumPage.java b/src/main/java/net/pterodactylus/sone/web/DeleteAlbumPage.java index f325332..41cd4b8 100644 --- a/src/main/java/net/pterodactylus/sone/web/DeleteAlbumPage.java +++ b/src/main/java/net/pterodactylus/sone/web/DeleteAlbumPage.java @@ -74,7 +74,7 @@ public class DeleteAlbumPage extends SoneTemplatePage { if (!album.isPresent()) { throw new RedirectException("invalid.html"); } - templateContext.set("album", album); + templateContext.set("album", album.get()); } }