summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorakozak2011-11-25 02:38:35 (EST)
committer Winston Prakash2011-12-01 20:47:33 (EST)
commit361ef7ec385be712186aad1d09edf471e31e0f59 (patch)
tree634b95b5f67a0f8daebc16ca68314469c364e633
parent1bb455ec31c27f3ea943eeb1f78fc042d3bd63c0 (diff)
downloadorg.eclipse.hudson.core-361ef7ec385be712186aad1d09edf471e31e0f59.zip
org.eclipse.hudson.core-361ef7ec385be712186aad1d09edf471e31e0f59.tar.gz
org.eclipse.hudson.core-361ef7ec385be712186aad1d09edf471e31e0f59.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>>