Skip to content

Commit

Permalink
FE: name may be null
Browse files Browse the repository at this point in the history
  • Loading branch information
plepe committed Sep 8, 2019
1 parent 9fd1e7d commit 5e8e05f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions inc/form_element.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ form_element.prototype.name=function() {
else
name=this.def.name;

if (!name) {
return '';
}

if(typeof name=="object") {
return lang(name);
}
Expand Down

0 comments on commit 5e8e05f

Please sign in to comment.