projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Store the real album object in the template context
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
web
/
DeleteAlbumPage.java
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
(file)
--- 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");
}
if (!album.isPresent()) {
throw new RedirectException("invalid.html");
}
- templateContext.set("album", album);
+ templateContext.set("album", album
.get()
);
}
}
}
}