Skip to content
Permalink
Browse files

add back kind for backwards compatibility, until plugins can be stage…

…d onto $class
  • Loading branch information...
mattmoor committed Nov 1, 2014
1 parent cef6b49 commit 4de46465153dae1a9e804c0d526c44d528f00fb4
@@ -909,7 +909,11 @@ private URL getStaticHelpUrl(Klass<?> c, String suffix) {
if (formData!=null) {
for (Object o : JSONArray.fromObject(formData)) {
JSONObject jo = (JSONObject)o;
String kind = jo.getString("$class");
String kind = jo.optString("$class", null);
if (kind == null) {
// Legacy: Remove once plugins have been staged onto $class
kind = jo.getString("kind");
}
Descriptor<T> d = find(descriptors, kind);
if (d != null) {
items.add(d.newInstance(req, jo));
@@ -38,6 +38,10 @@ THE SOFTWARE.
<f:invisibleEntry>
<!-- Legacy: Remove once plugins have been staged onto $class -->
<input type="hidden" name="stapler-class" value="${clazz}" />
<!-- Legacy: Remove once plugins have been staged onto $class -->
<j:if test="${attrs.descriptor != null}">
<input type="hidden" name="kind" value="${attrs.descriptor.id}" />
</j:if>
<input type="hidden" name="$class" value="${clazz}" />
</f:invisibleEntry>
</j:jelly>

0 comments on commit 4de4646

Please sign in to comment.
You can’t perform that action at this time.