From: David ‘Bombe’ Roden Date: Fri, 14 Jan 2011 11:39:08 +0000 (+0100) Subject: Redirect back to profile after adding a field. X-Git-Tag: 0.4^2~9^2~25 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=80d93d9da3f7913ebe3863384a78e821329ac3d3;p=Sone.git Redirect back to profile after adding a field. --- 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);