[FIXED HUDSON-4070] Edit Description worked incorrectly when default view

is changed from All jobs.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@20183 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
mindless committed 2009-07-27 16:48:35 +00:00
1 parent fd3fe87705
commit a6b3205b33
3 files changed
+14 -7

No files matched your search

@@ -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
+1 -6
View File
@@ -2348,12 +2348,7 @@ public final class Hudson extends Node implements ItemGroup<TopLevelItem>, 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);
}
/**