Save Sone after creating the album.
[Sone.git] / src / main / java / net / pterodactylus / sone / web / CreateAlbumPage.java
index 378f815..5382253 100644 (file)
@@ -64,6 +64,7 @@ public class CreateAlbumPage extends SoneTemplatePage {
                        Album parent = webInterface.getCore().getAlbum(parentId, false);
                        Album album = webInterface.getCore().createAlbum(currentSone, parent);
                        album.setName(name).setDescription(description);
+                       webInterface.getCore().saveSone(currentSone);
                        throw new RedirectException("imageBrowser.html?album=" + album.getId());
                }
        }