Commit ca5f89ac authored by jan.koester's avatar jan.koester
Browse files

test

parent 78ce1d8c
Loading
Loading
Loading
Loading
+4 −0
Changes for editor/src/webedit_api.cpp: 4 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -3996,8 +3996,12 @@ json_object* webedit::Api::surveyXmlToJson(const std::string &name,
                        json_object *jo = json_object_new_object();
                        const char *val = optEl->Attribute("value");
                        const char *lbl = optEl->GetText();
                        const char *exc = optEl->Attribute("excludes");
                        const char *ico = optEl->Attribute("icon");
                        json_object_object_add(jo, "value", json_object_new_string(val ? val : ""));
                        json_object_object_add(jo, "label", json_object_new_string(lbl ? lbl : ""));
                        if (exc && exc[0]) json_object_object_add(jo, "excludes", json_object_new_string(exc));
                        if (ico && ico[0]) json_object_object_add(jo, "icon",     json_object_new_string(ico));
                        json_object_array_add(jopts, jo);
                    }
                    json_object_object_add(jq, "options", jopts);