Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Network
Konqueror
Commits
1b12d1e1
Commit
1b12d1e1
authored
Sep 03, 2020
by
Stefano Crocco
Browse files
Use field id instead of name if name is empty
parent
7e58be87
Changes
1
Show whitespace changes
Inline
Side-by-side
webenginepart/src/formautofiller.js
View file @
1b12d1e1
...
...
@@ -95,7 +95,7 @@ function objectFromElement(el) {
var
obj
=
new
Object
;
obj
.
id
=
String
(
el
.
id
);
obj
.
name
=
el
.
name
;
if
(
typeof
(
obj
.
name
)
!=
'
string
'
)
{
if
(
typeof
(
obj
.
name
)
!=
'
string
'
||
obj
.
name
.
length
==
0
)
{
obj
.
name
=
obj
.
id
;
}
if
(
obj
.
name
.
length
==
0
)
{
...
...
Write
Preview
Supports
Markdown
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