Store the real album object in the template context
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 30 Jul 2015 20:25:10 +0000 (22:25 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 30 Jul 2015 20:25:10 +0000 (22:25 +0200)
src/main/java/net/pterodactylus/sone/web/DeleteAlbumPage.java

index f325332..41cd4b8 100644 (file)
@@ -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());
        }
 
 }