Skip to content
Permalink
Browse files

Merge pull request #54 from jglick/itemCategories-JENKINS-33972

[JENKINS-33972] View.doCategories renamed to doItemCategories

#55 is identical, just merging the lower-numbered one.
  • Loading branch information...
jglick committed Apr 3, 2016
2 parents 6f2daf4 + dab9432 commit 526694d36b9d2e0685ceac9c168204a209969b3d
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/main/java/com/cloudbees/hudson/plugins/folder/FolderAddFilter.java
@@ -40,8 +40,8 @@

@Override public boolean filter(Object context, Descriptor descriptor) {
StaplerRequest req = Stapler.getCurrentRequest();
// View/newJob.jelly for 1.x, View.doCategories for 2.x
if (req == null || !req.getRequestURI().matches(".*/(newJob|categories)")) {
// View/newJob.jelly for 1.x, View.doItemCategories for 2.x
if (req == null || !req.getRequestURI().matches(".*/(newJob|itemCategories)")) {
return true;
}
if (!(descriptor instanceof TopLevelItemDescriptor)) {

0 comments on commit 526694d

Please sign in to comment.
You can’t perform that action at this time.