Merge pull request #1094 from smita786/QA_4_1

bug fix #4338:Executing queries in SQL tab broken Bug
This commit is contained in:
Michal Čihař 2014-03-24 16:06:06 +01:00
commit 0850abc8bc

View File

@ -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();