From 7a52a7fe418cfe017586a2c76650926ceae81df5 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Thu, 12 Jul 2012 17:10:50 +0200 Subject: [PATCH] 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. --- admin/javascript/LeftAndMain.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/admin/javascript/LeftAndMain.js b/admin/javascript/LeftAndMain.js index 387ece8f9..ca2ae96aa 100644 --- a/admin/javascript/LeftAndMain.js +++ b/admin/javascript/LeftAndMain.js @@ -253,8 +253,7 @@ jQuery.noConflict(); }); newForm.trigger('aftersubmitform', {status: status, xhr: xhr, formData: formData}); - }, - dataType: 'json' + } }, ajaxOptions)); return false;