From 527196aa8845f4da38a66bd4a1ec78721901dea5 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Fri, 24 Jan 2020 18:18:33 +0000 Subject: [PATCH] Bug 24497: Turn off smartIndent for SQL Signed-off-by: Christopher Brannon Signed-off-by: Katrin Fischer Signed-off-by: Martin Renvoize Signed-off-by: Joy Nelson (cherry picked from commit c9f03be65ad5da374ce453e5bdedc65bcfdcaab3) Signed-off-by: Lucas Gass --- .../prog/en/modules/reports/guided_reports_start.tt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt index 79f17d96b4..a2b99d7546 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt @@ -1029,7 +1029,8 @@ canned reports and writing custom SQL reports.

var editor = CodeMirror.fromTextArea(sql, { lineNumbers: true, mode: "text/x-sql", - lineWrapping: true + lineWrapping: true, + smartIndent: false }); // https://stackoverflow.com/questions/2086287/how-to-clear-jquery-validation-error-messages#answer-16025232 -- 2.39.5