Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
JENKINS-17108. This solves the problem with ItemListner.onUpdated not…
… being called if the project was disabled/enabled by pushing the button on the project page. Also solved the problem with ItemListener.onUpdated not getting called if the project description was updated using the edit description on the project page.
  • Loading branch information
d-olausson-ericsson authored and vjuranek committed Sep 4, 2013
1 parent 49c731f commit e81a907
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/src/main/java/hudson/model/AbstractItem.java
Expand Up @@ -182,7 +182,9 @@ public String getDescription() {
*/
public void setDescription(String description) throws IOException {
this.description = description;
ItemListener.fireOnUpdated(this);
save();

}

/**
Expand Down
2 changes: 2 additions & 0 deletions core/src/main/java/hudson/model/AbstractProject.java
Expand Up @@ -53,6 +53,7 @@
import hudson.model.RunMap.Constructor;
import hudson.model.labels.LabelAtom;
import hudson.model.labels.LabelExpression;
import hudson.model.listeners.ItemListener;
import hudson.model.listeners.SCMPollListener;
import hudson.model.queue.CauseOfBlockage;
import hudson.model.queue.SubTaskContributor;
Expand Down Expand Up @@ -702,6 +703,7 @@ public void makeDisabled(boolean b) throws IOException {
this.disabled = b;
if(b)
Jenkins.getInstance().getQueue().cancel(this);
ItemListener.fireOnUpdated(this);
save();
}

Expand Down

0 comments on commit e81a907

Please sign in to comment.