Commit 5d793055 authored by mattwire's avatar mattwire
Browse files

Fix resetting submitted flag when form not valid

parent 00b2b434
......@@ -437,6 +437,7 @@ CRM.$(function($) {
if (($(form).valid() === false) || $(form).data('crmBillingFormValid') === false) {
debugging('Form not valid');
$('div#card-errors').hide();
form.dataset.submitted = 'false';
notifyUser('error', '', ts('Please check and fill in all required fields!'), '#crm-container');
triggerEvent('crmBillingFormNotValid');
return false;
......
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