Redirect back to itself after editing.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 28 Jul 2012 09:21:10 +0000 (11:21 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 28 Jul 2012 09:21:10 +0000 (11:21 +0200)
src/main/java/net/pterodactylus/demoscenemusic/page/admin/EditTrackPage.java

index def00fb..c1f999f 100644 (file)
@@ -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);