Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[FIXED JENKINS-18074] Avoid clearing AbstractItem.displayName when th…
…e new parent ItemGroup is different.

Originally-Committed-As: 04e2ccade6c831578bdd32b5e5982cf150f635f4
  • Loading branch information
jglick committed May 24, 2013
1 parent 9dc74d4 commit 15800d1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/src/main/java/org/jvnet/hudson/test/MockFolder.java
Expand Up @@ -136,6 +136,17 @@ private ViewGroupMixIn vgmixin() {
return mixin().copy(src, name);
}

@Override public void onCopiedFrom(Item src) {
super.onCopiedFrom(src);
for (TopLevelItem item : ((MockFolder) src).getItems()) {
try {
copy(item, item.getName());
} catch (IOException x) {
assert false : x;
}
}
}

@Override public TopLevelItem createProjectFromXML(String name, InputStream xml) throws IOException {
return mixin().createProjectFromXML(name, xml);
}
Expand Down

0 comments on commit 15800d1

Please sign in to comment.