Skip to content
Snippets Groups Projects
Commit ccc84bb7 authored by Mirco Nasuti's avatar Mirco Nasuti
Browse files

put back group attribute to deprecated variables API

parent b0764ea0
...@@ -155,6 +155,10 @@ public class VariablesApi { ...@@ -155,6 +155,10 @@ public class VariablesApi {
} }
if (element.has("variables")){ if (element.has("variables")){
for (JsonElement var : element.getAsJsonArray("variables")){ for (JsonElement var : element.getAsJsonArray("variables")){
JsonObject grp = new JsonObject();
grp.addProperty("code", element.getAsJsonPrimitive("code").getAsString());
grp.addProperty("label", element.getAsJsonPrimitive("label").getAsString());
var.getAsJsonObject().add("group", grp);
variables.add(new Gson().toJson(var)); variables.add(new Gson().toJson(var));
} }
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment