Bug 11431: (QA followup) Always allow audio alerts for audio alerts editor page
authorKyle M Hall <kyle@bywatersolutions.com>
Fri, 23 Oct 2015 11:05:23 +0000 (07:05 -0400)
committerTomas Cohen Arazi <tomascohen@theke.io>
Wed, 4 Nov 2015 15:33:10 +0000 (12:33 -0300)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
admin/audio_alerts.pl
koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc

index dc0903f..d592be4 100755 (executable)
@@ -58,6 +58,6 @@ if ( $id && $action && $where && $action eq 'move' ) {
     Koha::AudioAlerts->find($id)->move($where);
 }
 
-$template->param( audio_alerts => scalar Koha::AudioAlerts->search() );
+$template->param( AudioAlerts => 1, audio_alerts => scalar Koha::AudioAlerts->search() );
 
 output_html_with_http_headers $cgi, $cookie, $template->output;
index 16d6b8a..3a54447 100644 (file)
@@ -65,7 +65,7 @@
     </script>
 [% END %]
 
-[% IF Koha.Preference('AudioAlerts') %]
+[% IF Koha.Preference('AudioAlerts') || AudioAlerts %]
     <script type="text/javascript">
         //<![CDATA[
             var AUDIO_ALERT_PATH = '[% interface %]/[% theme %]/sound/';