Skip to content

Commit

Permalink
[FIXED JENKINS-18680] Update members of a ListView using a regular li…
Browse files Browse the repository at this point in the history
…stener, not View.onJobRenamed which does not work with folders.

Originally-Committed-As: 6d3c2e0d849dd76b6507daca1cc910f75418e941
  • Loading branch information
jglick committed Dec 19, 2013
1 parent 9d53ebc commit 511bd49
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions test/src/main/java/org/jvnet/hudson/test/MockFolder.java
Expand Up @@ -181,9 +181,6 @@ public <T extends TopLevelItem> T createProject(Class<T> type, String name) thro
@Override public void onRenamed(TopLevelItem item, String oldName, String newName) throws IOException {
items.remove(oldName);
items.put(newName, item);
for (View v : views) {
v.onJobRenamed(item, oldName, newName);
}
}

@Override public void renameTo(String newName) throws IOException {
Expand All @@ -193,9 +190,6 @@ public <T extends TopLevelItem> T createProject(Class<T> type, String name) thro
@Override public void onDeleted(TopLevelItem item) throws IOException {
ItemListener.fireOnDeleted(item);
items.remove(item.getName());
for (View v : views) {
v.onJobRenamed(item, item.getName(), null);
}
}

@Override public boolean canAdd(TopLevelItem item) {
Expand Down

0 comments on commit 511bd49

Please sign in to comment.