From 3b4fedd70db310ee7b8877e86d65dd7ee7827088 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 29 Dec 2016 10:31:38 +0000 Subject: [PATCH] Bug 17762: Fix sql fields insertion The "Insert ->" buttons used to copy the sql field to the textarea was based on the id of the fieldset. This id has to be unique to work as expected. It is now composed of mtt + lang instead of mtt only --- koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt index 6a3280c..27cb4e8 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt @@ -138,8 +138,8 @@ $(document).ready(function() { } return true; } - function insertValueQuery(mtt_id) { - var fieldset = $("#" + mtt_id); + function insertValueQuery(containerid) { + var fieldset = $("#" + containerid); var myQuery = $(fieldset).find('textarea[name="content"]'); var myListBox = $(fieldset).find('select[name="SQLfieldname"]'); @@ -415,13 +415,13 @@ $(document).ready(function() { [% END %] [% IF letter.message_transport_type == "sms" and not Koha.Preference("SMSSendDriver") %] -
+
You should enable the SMSSendDriver preference to use the SMS templates.
[% ELSIF letter.message_transport_type == "phone" and not Koha.Preference("TalkingTechItivaPhoneNotification") %] -
+
You should enable the TalkingTechItivaPhoneNotification preference to use the phone templates.
[% ELSE %] -
+
[% END %]
  1. @@ -452,7 +452,7 @@ $(document).ready(function() { - + -- 2.1.4