mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUG Default form submits to text/html, fixing validation (#7653)
Was using text/json, which Form->httpSubmission() interprets (correctly) to returning JSON validation data. This trips up the interface, which expects HTML with the validation errors directly in the markup.
This commit is contained in:
parent
998b8e048c
commit
7a52a7fe41
@ -253,8 +253,7 @@ jQuery.noConflict();
|
||||
});
|
||||
|
||||
newForm.trigger('aftersubmitform', {status: status, xhr: xhr, formData: formData});
|
||||
},
|
||||
dataType: 'json'
|
||||
}
|
||||
}, ajaxOptions));
|
||||
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user