From c115c68b823e9e6b314715aa7b46bf0c7a207dbd Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Thu, 26 Jul 2012 14:12:35 +0200 Subject: [PATCH] Redirect back to itself after editing an artist. --- .../net/pterodactylus/demoscenemusic/page/admin/EditArtistPage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/pterodactylus/demoscenemusic/page/admin/EditArtistPage.java b/src/main/java/net/pterodactylus/demoscenemusic/page/admin/EditArtistPage.java index ba36ff7..09ba5be 100644 --- a/src/main/java/net/pterodactylus/demoscenemusic/page/admin/EditArtistPage.java +++ b/src/main/java/net/pterodactylus/demoscenemusic/page/admin/EditArtistPage.java @@ -101,7 +101,7 @@ public class EditArtistPage extends AdminBasePage { } getCore().getDataManager().saveArtist(artist); - throw new RedirectException("admin.artists"); + throw new RedirectException("admin.edit-artist?id=" + artist.getId()); } } catch (DatabaseException de1) { throw new RuntimeException("Could not load artist.", de1); -- 2.7.4