Config to use 1/0 for booleans
This commit is contained in:
1 parent
f7c1857b6a
commit
6bfe590b0d
3 files changed
+7
No files matched your search
@@ -216,6 +216,10 @@ function SetParameterValues(xml, methodRequest) {
|
||||
if (methodRequest.DATETIME_MILLISECONDS === false)
|
||||
val = val.replace('.000', '');
|
||||
}
|
||||
if (p[2] === 'xsd:boolean' && typeof val === 'boolean') {
|
||||
if (methodRequest.BOOLEAN_LITERAL === false)
|
||||
val = +val;
|
||||
}
|
||||
pvs.node("Value").attr({"xsi:type": p[2]}).text(val);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user