提交 bc6f3f43 编写于 作者: K kohsuke

"just show failures" feature was not working.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@3829 71c3de6d-444a-0410-be80-ed276b4c234a
上级 5fad5774
......@@ -100,9 +100,9 @@ public class TestResultProjectAction implements Action {
// set the updated value
Cookie cookie = new Cookie(FAILURE_ONLY_COOKIE,String.valueOf(failureOnly));
List anc = req.getAncestors();
Ancestor a = (Ancestor) anc.get(anc.size()-1); // last
cookie.setPath(a.getUrl()); // just for this chart
cookie.setMaxAge(Integer.MAX_VALUE);
Ancestor a = (Ancestor) anc.get(anc.size()-2);
cookie.setPath(a.getUrl()); // just for this project
cookie.setMaxAge(60*60*24*365); // 1 year
rsp.addCookie(cookie);
// back to the project page
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册