Skip to content

Commit fc31088

Browse files
SimpleQueryForm double title (#644)
* Preserve nulls
1 parent 7203cf5 commit fc31088

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

ehr/api-src/org/labkey/api/ehr/dataentry/SingleQueryFormSection.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
package org.labkey.api.ehr.dataentry;
1717

1818
import org.json.JSONObject;
19+
import org.labkey.api.util.JsonUtil;
1920
import org.labkey.api.view.template.ClientDependency;
2021

2122
import java.util.HashMap;
@@ -46,7 +47,7 @@ public JSONObject toJSON(DataEntryFormContext ctx, boolean includeFormElements)
4647
formConfig.put("title", null);
4748
formConfig.put("label", null);
4849
formConfig.put("maxItemsPerCol", 8);
49-
ret.put("formConfig", formConfig);
50+
ret.put("formConfig", JsonUtil.toJsonPreserveNulls(formConfig));
5051

5152
return ret;
5253
}

0 commit comments

Comments
 (0)