Skip to content

Commit 700ca59

Browse files
authored
Use correct JSON to save category modifications via API (#1285)
1 parent 674a84d commit 700ca59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/org/labkey/remoteapi/reports/SaveCategoriesCommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public JSONObject getJsonObject()
5050
JSONArray jsonArray = new JSONArray();
5151
for (org.labkey.remoteapi.reports.Category cat : _categories)
5252
{
53-
jsonArray.put(cat.getAllProperties());
53+
jsonArray.put(cat.toJSONObject());
5454
}
5555
jsonObject.put("categories", jsonArray);
5656
return jsonObject;

0 commit comments

Comments
 (0)