From dc0c851fc9c7bd0310f9f45b1a9d9a4562aad8a5 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Fri, 23 Oct 2015 07:05:23 -0400 Subject: [PATCH] Bug 11431: (QA followup) Always allow audio alerts for audio alerts editor page Signed-off-by: Katrin Fischer --- admin/audio_alerts.pl | 2 +- koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/audio_alerts.pl b/admin/audio_alerts.pl index dc0903f6a1..d592be41c9 100755 --- a/admin/audio_alerts.pl +++ b/admin/audio_alerts.pl @@ -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; diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc index 16d6b8a025..3a544477ff 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc @@ -65,7 +65,7 @@ [% END %] -[% IF Koha.Preference('AudioAlerts') %] +[% IF Koha.Preference('AudioAlerts') || AudioAlerts %]