From 80d93d9da3f7913ebe3863384a78e821329ac3d3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Fri, 14 Jan 2011 12:39:08 +0100 Subject: [PATCH] Redirect back to profile after adding a field. --- src/main/java/net/pterodactylus/sone/web/EditProfilePage.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/net/pterodactylus/sone/web/EditProfilePage.java b/src/main/java/net/pterodactylus/sone/web/EditProfilePage.java index 98bc49f..c1bac4a 100644 --- a/src/main/java/net/pterodactylus/sone/web/EditProfilePage.java +++ b/src/main/java/net/pterodactylus/sone/web/EditProfilePage.java @@ -92,6 +92,7 @@ public class EditProfilePage extends SoneTemplatePage { currentSone.setProfile(profile); fields = profile.getFields(); webInterface.getCore().saveSone(currentSone); + throw new RedirectException("editProfile.html#profile-fields"); } catch (IllegalArgumentException iae1) { dataProvider.set("fieldName", fieldName); dataProvider.set("duplicateFieldName", true); -- 2.7.4