Fix redirect URL.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 27 Jul 2012 14:24:20 +0000 (16:24 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 27 Jul 2012 14:24:20 +0000 (16:24 +0200)
src/main/java/net/pterodactylus/demoscenemusic/page/admin/AddArtistPage.java

index f38a19a..24d5e7b 100644 (file)
@@ -62,7 +62,7 @@ public class AddArtistPage extends AdminBasePage {
                        String name = request.getServletRequest().getParameter("name");
                        try {
                                Artist artist = getCore().getDataManager().createArtist(name);
-                               throw new RedirectException("admin.edit-artist?artist=" + artist.getId());
+                               throw new RedirectException("admin.edit-artist?id=" + artist.getId());
                        } catch (DatabaseException de1) {
                                throw new RuntimeException("Could not create artist.", de1);
                        }