]> git.koha-community.org Git - koha.git/commit
Bug 12690 - opacuserjs gets loaded twice in self checkout
authorDavid Cook <dcook@prosentient.com.au>
Fri, 1 Aug 2014 06:42:34 +0000 (16:42 +1000)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Tue, 5 Aug 2014 21:24:31 +0000 (18:24 -0300)
commit6e13e16db34e61d90d358b05af6f5d9d2751f70f
tree110ce3b9db0f9ccd89c2a73dd46e888b5612322c
parent4e278782f156a9d7452e6e9ddcefee9542b964fc
Bug 12690 - opacuserjs gets loaded twice in self checkout

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 <veron@veron.ch>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
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 <tomascohen@gmail.com>
koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt