未验证 提交 dbeda50a 编写于 作者: D Devin Nusbaum 提交者: GitHub

[JENKINS-52164] Fix rename action for AbstractItems that don't define URL when...

[JENKINS-52164] Fix rename action for AbstractItems that don't define URL when including the actions taglib (#3523)

* Reproduce JENKINS-52164

* Fix JENKINS-52164 by creating URL inline

* Remove tests from core
上级 0f4df5b6
...@@ -26,6 +26,6 @@ THE SOFTWARE. ...@@ -26,6 +26,6 @@ THE SOFTWARE.
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:s="/lib/form"> <j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:s="/lib/form">
<!-- TODO: Should use permission attribute after JENKINS-18649 --> <!-- TODO: Should use permission attribute after JENKINS-18649 -->
<j:if test="${it.hasPermission(it.CONFIGURE) or (it.parent.hasPermission(it.CREATE) and it.hasPermission(it.DELETE))}"> <j:if test="${it.hasPermission(it.CONFIGURE) or (it.parent.hasPermission(it.CREATE) and it.hasPermission(it.DELETE))}">
<l:task href="${url}/confirm-rename" icon="icon-notepad icon-md" enabled="${it.nameEditable}" title="${%Rename}"/> <l:task href="${h.getActionUrl(it.url, action)}" icon="icon-notepad icon-md" enabled="${it.nameEditable}" title="${%Rename}"/>
</j:if> </j:if>
</j:jelly> </j:jelly>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册