diff --git a/core/src/main/java/hudson/model/AllView.java b/core/src/main/java/hudson/model/AllView.java index a65f87c41c..b4fea1925f 100644 --- a/core/src/main/java/hudson/model/AllView.java +++ b/core/src/main/java/hudson/model/AllView.java @@ -72,6 +72,15 @@ public class AllView extends View { return Hudson.getInstance().getItems(); } + @Override + public synchronized void doSubmitDescription( StaplerRequest req, StaplerResponse rsp ) throws IOException, ServletException { + checkPermission(Hudson.ADMINISTER); + + req.setCharacterEncoding("UTF-8"); + Hudson.getInstance().setSystemMessage(req.getParameter("description")); + rsp.sendRedirect("."); + } + @Override public String getPostConstructLandingPage() { return ""; // there's no configuration page diff --git a/core/src/main/java/hudson/model/Hudson.java b/core/src/main/java/hudson/model/Hudson.java index 1e545fea74..234964ded0 100644 --- a/core/src/main/java/hudson/model/Hudson.java +++ b/core/src/main/java/hudson/model/Hudson.java @@ -2348,12 +2348,7 @@ public final class Hudson extends Node implements ItemGroup, Stapl * Accepts the new description. */ public synchronized void doSubmitDescription( StaplerRequest req, StaplerResponse rsp ) throws IOException, ServletException { - checkPermission(ADMINISTER); - - req.setCharacterEncoding("UTF-8"); - systemMessage = req.getParameter("description"); - save(); - rsp.sendRedirect("."); + getPrimaryView().doSubmitDescription(req,rsp); } /** diff --git a/core/src/main/resources/hudson/model/AbstractModelObject/descriptionForm.jelly b/core/src/main/resources/hudson/model/AbstractModelObject/descriptionForm.jelly index 1c5c6cdf5d..e913e327f8 100644 --- a/core/src/main/resources/hudson/model/AbstractModelObject/descriptionForm.jelly +++ b/core/src/main/resources/hudson/model/AbstractModelObject/descriptionForm.jelly @@ -26,6 +26,9 @@ THE SOFTWARE. Used by editableDescription.jelly for loading the edit form. --> + + +
@@ -34,4 +37,4 @@ THE SOFTWARE.
-
\ No newline at end of file +