Bug 21766: Correct filtering on AUDIO_ALERT_PATH js
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 5 Nov 2018 16:34:00 +0000 (16:34 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 16 Nov 2018 14:16:24 +0000 (14:16 +0000)
I managed to introduce a bad filter whilst backporting bug 15734 to the
18.05.x series. This patch attempts to correct that.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

koha-tmpl/intranet-tmpl/prog/en/includes/js_includes.inc

index 81918e9..177d085 100644 (file)
@@ -69,7 +69,7 @@
 [% IF Koha.Preference('AudioAlerts') || AudioAlertsPage %]
     <script type="text/javascript">
         //<![CDATA[
-            var AUDIO_ALERT_PATH = '[% interface | uri %]/[% theme | uri %]/sound/';
+            var AUDIO_ALERT_PATH = '[% interface | url %]/[% theme | uri %]/sound/';
             var AUDIO_ALERTS = JSON.parse( '[% To.json(AudioAlerts.AudioAlerts) %]' );
         //]]>