From: David ‘Bombe’ Roden Date: Sun, 10 Apr 2011 09:40:14 +0000 (+0200) Subject: Save Sone after creating the album. X-Git-Tag: beta-freefall-0.6.2-1~66 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=cb93f0ea4a4e9bf12a313a4465ea3cbc061845f3;p=Sone.git Save Sone after creating the album. --- 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()); } }