Save Sone after creating the album.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sun, 10 Apr 2011 09:40:14 +0000 (11:40 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 13 Apr 2011 04:39:40 +0000 (06:39 +0200)
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());
                }
        }