Skip to content
Browse files

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.
  • Loading branch information...
1 parent 998b8e0 commit 7a52a7fe418cfe017586a2c76650926ceae81df5 @chillu chillu committed
Showing with 1 addition and 2 deletions.
  1. +1 −2 admin/javascript/LeftAndMain.js
3 admin/javascript/LeftAndMain.js
@@ -253,8 +253,7 @@ jQuery.noConflict();
newForm.trigger('aftersubmitform', {status: status, xhr: xhr, formData: formData});
- },
- dataType: 'json'
+ }
}, ajaxOptions));
return false;

0 comments on commit 7a52a7f

Please sign in to comment.
Something went wrong with that request. Please try again.