absolute path shouldn't resolve from the current parent.

This commit is contained in:
Kohsuke Kawaguchi committed 2011-03-11 14:22:42 -08:00
1 parent c6ec700658
commit 7d169eb41a
1 file changed
+3 -1
@@ -144,7 +144,9 @@ public abstract class ItemGroupMixIn {
String from = req.getParameter("from");
// resolve a name to Item
Item src = parent.getItem(from);
Item src = null;
if (!from.startsWith("/"))
src = parent.getItem(from);
if (src==null)
src = Hudson.getInstance().getItemByFullName(from);