Skip to content
This repository
Browse code

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...
commit 7a52a7fe418cfe017586a2c76650926ceae81df5 1 parent 998b8e0
Ingo Schommer authored July 12, 2012

Showing 1 changed file with 1 addition and 2 deletions. Show diff stats Hide diff stats

  1. 3  admin/javascript/LeftAndMain.js
3  admin/javascript/LeftAndMain.js
@@ -253,8 +253,7 @@ jQuery.noConflict();
253 253
 						});
254 254
 
255 255
 						newForm.trigger('aftersubmitform', {status: status, xhr: xhr, formData: formData});
256  
-					}, 
257  
-					dataType: 'json'
  256
+					}
258 257
 				}, ajaxOptions));
259 258
 	
260 259
 				return false;

0 notes on commit 7a52a7f

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