Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Romain Courteaud
erp5
Commits
fa499ad4
Commit
fa499ad4
authored
Mar 14, 2024
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_json_editor: Fixup typecast for boolean
Select sets "1" and "" as values
parent
08171a5c
Changes
1
Show 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 @
fa499ad4
...
@@ -121,10 +121,10 @@
...
@@ -121,10 +121,10 @@
if
(
this
.
schema
.
type
===
'
boolean
'
&&
(
typeof
value
==
"
boolean
"
))
{
if
(
this
.
schema
.
type
===
'
boolean
'
&&
(
typeof
value
==
"
boolean
"
))
{
return
value
;
return
value
;
}
}
if
(
this
.
schema
.
type
===
'
boolean
'
&&
(
value
==
"
true
"
))
{
if
(
this
.
schema
.
type
===
'
boolean
'
&&
(
value
==
=
"
true
"
||
value
===
"
1
"
))
{
return
true
;
return
true
;
}
}
if
(
this
.
schema
.
type
===
'
boolean
'
&&
(
value
==
"
false
"
))
{
if
(
this
.
schema
.
type
===
'
boolean
'
&&
(
value
==
=
"
false
"
||
value
===
"
"
))
{
return
false
;
return
false
;
}
}
if
(
this
.
schema
.
type
===
'
number
'
&&
value
===
""
)
{
if
(
this
.
schema
.
type
===
'
number
'
&&
value
===
""
)
{
...
...
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