From e76db7e18009882448a605b600e8c4fdd36ace98 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 Signed-off-by: Hugo Agud Signed-off-by: Nick Clemens Signed-off-by: Kyle M Hall --- .../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 08c607652d..441b0ed75e 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.39.5