From 51d78cbb81f0e0121b3b1b932604487a71c809f8 Mon Sep 17 00:00:00 2001 From: Smita Kumari Date: Mon, 24 Mar 2014 19:54:53 +0530 Subject: [PATCH] Bug Sqlform:Missing value in the form Signed-off-by: Smita Kumari --- js/functions.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/functions.js b/js/functions.js index 5e7ef31263..ba9a89c212 100644 --- a/js/functions.js +++ b/js/functions.js @@ -385,7 +385,9 @@ function checkSqlQuery(theForm) { // get the textarea element containing the query if (codemirror_editor) { + codemirror_editor.save(); var sqlQuery = codemirror_editor.display.input; + sqlQuery.value = codemirror_editor.getValue(); } else { var sqlQuery = theForm.elements['sql_query']; } @@ -1398,6 +1400,7 @@ AJAX.registerOnload('functions.js', function () { //hide already existing success message var sql_query; if (codemirror_inline_editor) { + codemirror_inline_editor.save(); sql_query = codemirror_inline_editor.getValue(); } else { sql_query = $(this).prev().val();