From e821515b2ba6284fc2cb25e4fc59853244210202 Mon Sep 17 00:00:00 2001 From: kohsuke Date: Wed, 28 Jan 2009 02:22:42 +0000 Subject: [PATCH] we need to go through the initialization method as some JobProperty uses this to initialize other things (for example, the batch-task plugin does this.) git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@14830 71c3de6d-444a-0410-be80-ed276b4c234a --- core/src/main/java/hudson/model/Job.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/hudson/model/Job.java b/core/src/main/java/hudson/model/Job.java index b7d22a1c60..4016971a7f 100644 --- a/core/src/main/java/hudson/model/Job.java +++ b/core/src/main/java/hudson/model/Job.java @@ -299,7 +299,7 @@ public abstract class Job, RunT extends Run jobProp) throws IOException { - ((JobProperty)jobProp).owner = this; + ((JobProperty)jobProp).setOwner(this); properties.add(jobProp); save(); } -- GitLab