mvc/javascript, minor glich in getFormData() we should ignore empty id fields

This commit is contained in:
Ad Schellevis 2018-08-05 16:47:03 +02:00
parent 5ebe27bdb6
commit 3600cf26b4

View File

@ -52,7 +52,7 @@ function getFormData(parent) {
var data = {};
$( "#"+parent+" input,#"+parent+" select,#"+parent+" textarea" ).each(function( index ) {
if ($(this).prop('id') == undefined) {
if ($(this).prop('id') === undefined || $(this).prop('id') === "") {
// we need an id.
return;
}