Skip to content

Commit cc1fee7

Browse files
committed
Reverse json parsing in set config (set value as string)
1 parent 90ad44c commit cc1fee7

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

MDX2JSON/REST.cls.xml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,12 @@ Wrapper for ##class(MDX2JSON.Users).GetConfig()</Description>
276276
Wrapper for ##class(MDX2JSON.Users).SetConfig()</Description>
277277
<ClassMethod>1</ClassMethod>
278278
<ReturnType>%Status</ReturnType>
279-
<Implementation><![CDATA[ return ##class(MDX2JSON.Users).SetConfig($$$R("Application"),$$$R("Config"))
279+
<Implementation><![CDATA[
280+
set config = $$$R("Config")
281+
if (($IsObject(config)) && (config.%IsA("%ZEN.proxyObject"))) {
282+
set config = config.%ToJSON()
283+
}
284+
return ##class(MDX2JSON.Users).SetConfig($$$R("Application"),config)
280285
]]></Implementation>
281286
</Method>
282287

0 commit comments

Comments
 (0)