Set a name for the album.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 12 Jan 2011 19:52:16 +0000 (20:52 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 12 Jan 2011 19:52:16 +0000 (20:52 +0100)
src/main/java/net/pterodactylus/sone/web/CreateAlbumPage.java

index e0674c7..7e1062d 100644 (file)
@@ -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());
                }
        }