From d576410064fdbeaad90379ce484473ea1cad504b Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sat, 28 Jul 2012 11:21:10 +0200 Subject: [PATCH] Redirect back to itself after editing. --- .../java/net/pterodactylus/demoscenemusic/page/admin/EditTrackPage.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/net/pterodactylus/demoscenemusic/page/admin/EditTrackPage.java b/src/main/java/net/pterodactylus/demoscenemusic/page/admin/EditTrackPage.java index def00fb..c1f999f 100644 --- a/src/main/java/net/pterodactylus/demoscenemusic/page/admin/EditTrackPage.java +++ b/src/main/java/net/pterodactylus/demoscenemusic/page/admin/EditTrackPage.java @@ -77,6 +77,7 @@ public class EditTrackPage extends AdminBasePage { processProperties(request, track); getCore().getDataManager().saveTrack(track); + throw new RedirectException("admin.edit-track?id=" + track.getId()); } } catch (DatabaseException de1) { throw new RuntimeException("Could not edit track.", de1); -- 2.7.4