Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Jérome Perrin
erp5
Commits
0c68dde5
Commit
0c68dde5
authored
1 year ago
by
Rafael Monnerat
Committed by
Kazuhiko Shiozaki
8 months ago
Browse files
Options
Download
Email Patches
Plain Diff
erp5_json_editor: Fixup typecast for boolean
Select sets "1" and "" as values
parent
b1856a23
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
bt5/erp5_json_editor/SkinTemplateItem/portal_skins/erp5_json_editor/json-editor.gadget.js.js
...em/portal_skins/erp5_json_editor/json-editor.gadget.js.js
+2
-2
No files found.
bt5/erp5_json_editor/SkinTemplateItem/portal_skins/erp5_json_editor/json-editor.gadget.js.js
View file @
0c68dde5
...
...
@@ -121,10 +121,10 @@
if
(
this
.
schema
.
type
===
'
boolean
'
&&
(
typeof
value
==
"
boolean
"
))
{
return
value
;
}
if
(
this
.
schema
.
type
===
'
boolean
'
&&
(
value
==
"
true
"
))
{
if
(
this
.
schema
.
type
===
'
boolean
'
&&
(
value
==
=
"
true
"
||
value
===
"
1
"
))
{
return
true
;
}
if
(
this
.
schema
.
type
===
'
boolean
'
&&
(
value
==
"
false
"
))
{
if
(
this
.
schema
.
type
===
'
boolean
'
&&
(
value
==
=
"
false
"
||
value
===
""
))
{
return
false
;
}
if
(
this
.
schema
.
type
===
'
number
'
&&
value
===
""
)
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment