From 6e13e16db34e61d90d358b05af6f5d9d2751f70f Mon Sep 17 00:00:00 2001 From: David Cook Date: Fri, 1 Aug 2014 16:42:34 +1000 Subject: [PATCH] Bug 12690 - opacuserjs gets loaded twice in self checkout MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This patch removes a second instance of "opacuserjs" in the opac self-checkout. _TEST PLAN_ 1) Enable OPAC Self-checkout in the system preferences 2) Type the following code into your "opacuserjs" system preference: alert("This is a test"); 2) Visit /cgi-bin/koha/sco/sco-main.pl 3) Note that you get a pop-up saying "This is a test" twice. 4) Apply the patch 5) Refresh /cgi-bin/koha/sco/sco-main.pl 6) Note that you now only get a pop-up saying "This is a test" once. Followed test plan, patch behaves as expected. Signed-off-by: Marc Véron Signed-off-by: Katrin Fischer opac-bottom.inc already adds opacuserjs, so the additional line in this template can be removed. Works as described, no problems found. Signed-off-by: Tomas Cohen Arazi --- koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt | 1 - 1 file changed, 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt index 518fceeb15..e4c40aa45a 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt @@ -369,6 +369,5 @@ //]]> - [% IF ( opacuserjs ) %][% END %] [% IF ( SCOUserJS ) %][% END %] [% END %] -- 2.39.2