Set a name for the album.
[Sone.git] / 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());
                }
        }