提交 46a033a9 编写于 作者: K Kohsuke Kawaguchi

handle full name correctly

上级 dad17e0f
......@@ -144,7 +144,12 @@ public abstract class ItemGroupMixIn {
String mode = req.getParameter("mode");
if(mode!=null && mode.equals("copy")) {
String from = req.getParameter("from");
// resolve a name to Item
Item src = parent.getItem(from);
if (src==null)
src = Hudson.getInstance().getItemByFullName(from);
if(src==null) {
if(Util.fixEmpty(from)==null)
throw new Failure("Specify which job to copy");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册