From: David ‘Bombe’ Roden Date: Sat, 28 Jul 2012 09:21:10 +0000 (+0200) Subject: Redirect back to itself after editing. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=d576410064fdbeaad90379ce484473ea1cad504b;p=demoscenemusic.git Redirect back to itself after editing. --- 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);