提交 ef2b6580 编写于 作者: J Jesse Glick

[FIXED JENKINS-28110] Always generate stapler-class, even when generating kind.

上级 972db2a5
...@@ -46,12 +46,12 @@ THE SOFTWARE. ...@@ -46,12 +46,12 @@ THE SOFTWARE.
</st:documentation> </st:documentation>
<j:set var="clazz" value="${attrs.clazz ?: attrs.descriptor.clazz.name}" /> <j:set var="clazz" value="${attrs.clazz ?: attrs.descriptor.clazz.name}" />
<f:invisibleEntry> <f:invisibleEntry>
<input type="hidden" name="stapler-class" value="${clazz}" /> <!-- Legacy: Remove once plugins have been staged onto $class -->
<j:choose> <j:choose>
<j:when test="${attrs.descriptor != null and attrs.descriptor.id != clazz}"> <j:when test="${attrs.descriptor != null and attrs.descriptor.id != clazz}">
<input type="hidden" name="kind" value="${attrs.descriptor.id}" /> <input type="hidden" name="kind" value="${attrs.descriptor.id}" />
</j:when> </j:when>
<j:otherwise> <j:otherwise>
<input type="hidden" name="stapler-class" value="${clazz}" /> <!-- Legacy: Remove once plugins have been staged onto $class -->
<input type="hidden" name="$class" value="${clazz}" /> <input type="hidden" name="$class" value="${clazz}" />
</j:otherwise> </j:otherwise>
</j:choose> </j:choose>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册