Skip to content

Commit

Permalink
[JENKINS-18680] Comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
jglick committed Dec 19, 2013
1 parent a7966ad commit e00d2b7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/com/cloudbees/hudson/plugins/folder/Folder.java
Expand Up @@ -543,6 +543,7 @@ private File getJobsDir() {
public void onRenamed(TopLevelItem item, String oldName, String newName) throws IOException {
items.remove(oldName);
items.put(newName, item);
// For compatibility with old views:
for (View v : views) {
v.onJobRenamed(item, oldName, newName);
}
Expand Down Expand Up @@ -583,6 +584,7 @@ public void onCopiedFrom(Item _src) {
public void onDeleted(TopLevelItem item) throws IOException {
ItemListener.fireOnDeleted(item);
items.remove(item.getName());
// For compatibility with old views:
for (View v : views) {
v.onJobRenamed(item, item.getName(), null);
}
Expand Down

0 comments on commit e00d2b7

Please sign in to comment.