Skip to content

Commit 4af2185

Browse files
committed
Final fix for getting settings.
1 parent cf368f1 commit 4af2185

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

MDX2JSON/REST.cls.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ Wrapper for ##class(MDX2JSON.Users).GetConfig()</Description>
266266
<FormalSpec>Application</FormalSpec>
267267
<ReturnType>%Status</ReturnType>
268268
<Implementation><![CDATA[
269-
w "{""Config"":" _ ##class(MDX2JSON.Users).GetConfig(Application) _ "}"
269+
w "{"_$$$ZENJSPAIR("Config",##class(MDX2JSON.Users).GetConfig(Application))_"}"
270270
return $$$OK
271271
]]></Implementation>
272272
</Method>

MDX2JSON/Users.cls.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ Get <b>App</b> configuration for <b>User</b>]]></Description>
3434
zn "%SYS"
3535
set st =##class(Security.Users).Get(User,.Properties)
3636
zn ns
37-
set setting = $g(Properties("Attributes",App),$lb(""""""))
38-
return $lg(setting)
37+
return $lg($g(Properties("Attributes",App)))
3938
]]></Implementation>
4039
</Method>
4140

0 commit comments

Comments
 (0)