Commit f7e59773 authored by mattwire's avatar mattwire Committed by mattwire
Browse files

Improve selector in CRM.payment.getBillingEmail() to match all visible email fields on form

parent 48a5a04c
......@@ -211,7 +211,7 @@
*/
getBillingEmail: function() {
var billingEmail = '';
$(this.form).find('input.email').each(function() { billingEmail += $(this).val() + ';'; });
$(this.form).find('input[id^=email]').filter(':visible').each(function() { billingEmail += $(this).val() + ';'; });
return billingEmail;
},
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment