diff --git a/core/src/main/java/hudson/Functions.java b/core/src/main/java/hudson/Functions.java index e696d40f29..79e95e9367 100644 --- a/core/src/main/java/hudson/Functions.java +++ b/core/src/main/java/hudson/Functions.java @@ -2043,4 +2043,13 @@ public class Functions { } } + @Restricted(NoExternalUse.class) // for cc.xml.jelly + public static Collection getCCItems(View v) { + if (Stapler.getCurrentRequest().getParameter("recursive") != null) { + return Items.getAllItems(v.getOwner().getItemGroup(), TopLevelItem.class); + } else { + return v.getItems(); + } + } + } diff --git a/core/src/main/resources/hudson/model/View/cc.xml.jelly b/core/src/main/resources/hudson/model/View/cc.xml.jelly index 46253ec93d..b83ec111d1 100644 --- a/core/src/main/resources/hudson/model/View/cc.xml.jelly +++ b/core/src/main/resources/hudson/model/View/cc.xml.jelly @@ -32,10 +32,10 @@ THE SOFTWARE. - + -