diff --git a/core/src/main/java/hudson/model/ViewJob.java b/core/src/main/java/hudson/model/ViewJob.java index 885e3f3799..d28042df55 100644 --- a/core/src/main/java/hudson/model/ViewJob.java +++ b/core/src/main/java/hudson/model/ViewJob.java @@ -59,6 +59,12 @@ public abstract class ViewJob, RunT extends Run< return false; } + + protected void onLoad(Hudson root, String name) throws IOException { + super.onLoad(root, name); + notLoaded = true; + } + protected SortedMap _getRuns() { if(notLoaded || runs==null) { // if none is loaded yet, do so immediately.