提交 17240f43 编写于 作者: O Oliver Gondža

Merge pull request #905 from Vlatombe/fixIncludeRegexListView

[JENKINS-19082] Fix ListView includeRegex
......@@ -329,7 +329,7 @@ public class ListView extends View implements Saveable {
}
}
setIncludeRegex(req.getParameter("useincluderegex"));
setIncludeRegex(req.getParameter("useincluderegex") != null ? req.getParameter("includeRegex") : null);
if (columns == null) {
columns = new DescribableList<ListViewColumn,Descriptor<ListViewColumn>>(this);
......@@ -346,16 +346,11 @@ public class ListView extends View implements Saveable {
}
public void setIncludeRegex(String includeRegex) {
if (includeRegex != null) {
this.includeRegex = Util.nullify(includeRegex);
if (this.includeRegex == null)
this.includePattern = null;
else
this.includePattern = Pattern.compile(includeRegex);
} else {
this.includeRegex = null;
this.includePattern = null;
}
}
@Extension
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册