From feb88c76e5e2f4d20141a6dabc204771f24e0bcb Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Thu, 30 Jul 2015 22:25:10 +0200 Subject: [PATCH] Store the real album object in the template context --- src/main/java/net/pterodactylus/sone/web/DeleteAlbumPage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); } } -- 2.7.4