Skip to content

Commit

Permalink
BUG Default form submits to text/html, fixing validation (#7653)
Browse files Browse the repository at this point in the history
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
chillu committed Jul 12, 2012
1 parent 998b8e0 commit 7a52a7f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions admin/javascript/LeftAndMain.js
Expand Up @@ -253,8 +253,7 @@ jQuery.noConflict();
}); });


newForm.trigger('aftersubmitform', {status: status, xhr: xhr, formData: formData}); newForm.trigger('aftersubmitform', {status: status, xhr: xhr, formData: formData});
}, }
dataType: 'json'
}, ajaxOptions)); }, ajaxOptions));


return false; return false;
Expand Down

0 comments on commit 7a52a7f

Please sign in to comment.