From 333833c8f88fa0365eda2ee9d10a67b8cd6bfbb0 Mon Sep 17 00:00:00 2001 From: kohsuke Date: Fri, 17 Nov 2006 14:43:01 +0000 Subject: [PATCH] fixed a bug revealed by the reduced external job reloading cycle. git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@1138 71c3de6d-444a-0410-be80-ed276b4c234a --- core/src/main/java/hudson/model/ViewJob.java | 6 ++++++ 1 file changed, 6 insertions(+) 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.