Fix typo in ParametersRenderer and flag additional issue

This commit is contained in:
Lloyd McKenzie 2020-09-01 21:52:45 -06:00
parent 6cf6367b30
commit 0191bfbbfb
1 changed files with 2 additions and 1 deletions

View File

@ -70,6 +70,7 @@ public class ParametersRenderer extends ResourceRenderer {
td.tx(XhtmlNode.NBSP); td.tx(XhtmlNode.NBSP);
} }
td.tx(p.get("name").primitiveValue()); td.tx(p.get("name").primitiveValue());
// Grahame: p.has("value") doesn't fire because the property names are things like valueString or valueBoolean and has("value") doesn't find those.
if (p.has("value")) { if (p.has("value")) {
renderBase(tr.td(), p.get("value")); renderBase(tr.td(), p.get("value"));
} else if (p.has("resource")) { } else if (p.has("resource")) {
@ -87,7 +88,7 @@ public class ParametersRenderer extends ResourceRenderer {
} }
} else if (p.has("part")) { } else if (p.has("part")) {
tr.td(); tr.td();
PropertyWrapper pw = getProperty(p, "parameter"); PropertyWrapper pw = getProperty(p, "part");
paramsW(tbl, pw.getValues(), 1); paramsW(tbl, pw.getValues(), 1);
} }
} }