removed empty extra fields from being added to object.
This commit is contained in:
@@ -400,7 +400,10 @@ function getAndValidateExtraFields() {
|
|||||||
} else {
|
} else {
|
||||||
extraFieldInput.removeClass("is-invalid");
|
extraFieldInput.removeClass("is-invalid");
|
||||||
}
|
}
|
||||||
outputData.push({ name: extraFieldName, value: extraFieldValue });
|
//only push fields with value in them
|
||||||
|
if (extraFieldValue.trim() != '') {
|
||||||
|
outputData.push({ name: extraFieldName, value: extraFieldValue });
|
||||||
|
}
|
||||||
});
|
});
|
||||||
return { hasError: hasError, extraFields: outputData };
|
return { hasError: hasError, extraFields: outputData };
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user