From 1945872e3f66cd451c7ef2c423a2714ac79cba79 Mon Sep 17 00:00:00 2001 From: Ashesh Vashi Date: Tue, 5 Jan 2016 02:17:37 +0530 Subject: [PATCH] Send ajax request as 'application/json', while fetching the modified sql from the dialog properties. --- web/pgadmin/static/js/backform.pgadmin.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/pgadmin/static/js/backform.pgadmin.js b/web/pgadmin/static/js/backform.pgadmin.js index 727cb92fb..295673f81 100644 --- a/web/pgadmin/static/js/backform.pgadmin.js +++ b/web/pgadmin/static/js/backform.pgadmin.js @@ -977,7 +977,9 @@ url: msql_url, type: 'GET', cache: false, - data: self.model.toJSON(true) + data: self.model.toJSON(true), + dataType: "json", + contentType: "application/json" }).done(function(res) { self.sqlTab.clearHistory(); self.sqlTab.setValue(res.data);