From: David ‘Bombe’ Roden Date: Wed, 12 Jan 2011 19:52:16 +0000 (+0100) Subject: Set a name for the album. X-Git-Tag: beta-freefall-0.6.2-1~105 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=4d6126a5e01b871bee59d5821052c2530e155f45;p=Sone.git Set a name for the album. --- diff --git a/src/main/java/net/pterodactylus/sone/web/CreateAlbumPage.java b/src/main/java/net/pterodactylus/sone/web/CreateAlbumPage.java index e0674c7..7e1062d 100644 --- a/src/main/java/net/pterodactylus/sone/web/CreateAlbumPage.java +++ b/src/main/java/net/pterodactylus/sone/web/CreateAlbumPage.java @@ -62,6 +62,7 @@ public class CreateAlbumPage extends SoneTemplatePage { String parentId = request.getHttpRequest().getPartAsStringFailsafe("parent", 36); Album parent = webInterface.getCore().getAlbum(parentId, false); Album album = webInterface.getCore().createAlbum(currentSone, parent); + album.setName(name); throw new RedirectException("imageBrowser.html?album=" + album.getId()); } }