From cb93f0ea4a4e9bf12a313a4465ea3cbc061845f3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sun, 10 Apr 2011 11:40:14 +0200 Subject: [PATCH] Save Sone after creating the album. --- src/main/java/net/pterodactylus/sone/web/CreateAlbumPage.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/net/pterodactylus/sone/web/CreateAlbumPage.java b/src/main/java/net/pterodactylus/sone/web/CreateAlbumPage.java index 378f815..5382253 100644 --- a/src/main/java/net/pterodactylus/sone/web/CreateAlbumPage.java +++ b/src/main/java/net/pterodactylus/sone/web/CreateAlbumPage.java @@ -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()); } } -- 2.7.4