summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorakozak2011-11-25 02:38:35 (EST)
committer Winston Prakash2011-12-01 20:47:33 (EST)
commit487cf1eeb9d070004ff22c6550cd9db558b07d27 (patch)
tree235e501830a136b4d13fd1f63a7a6dbde56932af
parent69e40b63fa40f4c7ae3301950b7acb7700ee0349 (diff)
downloadorg.eclipse.hudson.core-487cf1eeb9d070004ff22c6550cd9db558b07d27.zip
org.eclipse.hudson.core-487cf1eeb9d070004ff22c6550cd9db558b07d27.tar.gz
org.eclipse.hudson.core-487cf1eeb9d070004ff22c6550cd9db558b07d27.tar.bz2
Fix triggers logic. Call #updateTransientActions() on trigger add/remove
Signed-off-by: Winston Prakash <winston.prakash@gmail.com>
-rw-r--r--hudson-core/src/main/java/hudson/model/AbstractProject.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/hudson-core/src/main/java/hudson/model/AbstractProject.java b/hudson-core/src/main/java/hudson/model/AbstractProject.java
index 07ff4be..c2ddeb1 100644
--- a/hudson-core/src/main/java/hudson/model/AbstractProject.java
+++ b/hudson-core/src/main/java/hudson/model/AbstractProject.java
@@ -1648,10 +1648,15 @@ public abstract class AbstractProject<P extends AbstractProject<P,R>,R extends A
@SuppressWarnings("unchecked")
public void addTrigger(Trigger<?> trigger) throws IOException {
CascadingUtil.getTriggerProjectProperty(this, trigger.getDescriptor().getJsonSafeClassName()).setValue(trigger);
+ save();
+ updateTransientActions();
}
+ @SuppressWarnings("unchecked")
public void removeTrigger(TriggerDescriptor trigger) throws IOException {
CascadingUtil.getTriggerProjectProperty(this, trigger.getJsonSafeClassName()).setValue(null);
+ save();
+ updateTransientActions();
}
protected final synchronized <T extends Describable<T>>