From f3a324c247b2d9dfc481b391b05824977b1945c7 Mon Sep 17 00:00:00 2001
From: Katrin Fischer <Katrin.Fischer.83@web.de>
Date: Sat, 24 Oct 2015 12:01:52 +0200
Subject: [PATCH] Bug 11431: QA follow-up: Typo in help file / variable name

Fixes the variable name to avoid a double-up that made it
impossible to turn off the sounds in general. If AudioAlerts
are turned off, they will only work on the audio administration
page now so you can set up and test the different sounds there.

Also fixes a little typo in the help file.
---
 admin/audio_alerts.pl                              |    2 +-
 .../prog/en/includes/doc-head-close.inc            |    2 +-
 .../prog/en/modules/help/admin/audio_alerts.tt     |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/admin/audio_alerts.pl b/admin/audio_alerts.pl
index 8470255..fa55b28 100755
--- a/admin/audio_alerts.pl
+++ b/admin/audio_alerts.pl
@@ -63,6 +63,6 @@ if (@delete) {
     Koha::AudioAlerts->fix_precedences();
 }
 
-$template->param( AudioAlerts => 1, audio_alerts => scalar Koha::AudioAlerts->search() );
+$template->param( AudioAlertsPage => 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 3a54447..73514c2 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 @@
     </script>
 [% END %]
 
-[% IF Koha.Preference('AudioAlerts') || AudioAlerts %]
+[% IF Koha.Preference('AudioAlerts') || AudioAlertsPage %]
     <script type="text/javascript">
         //<![CDATA[
             var AUDIO_ALERT_PATH = '[% interface %]/[% theme %]/sound/';
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/help/admin/audio_alerts.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/help/admin/audio_alerts.tt
index 7ab865a..01c07d7 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/help/admin/audio_alerts.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/help/admin/audio_alerts.tt
@@ -12,7 +12,7 @@
     <li>Locate the "Add new alert" form.</li>
     <li>
         Enter a selector in the "selector" input, you can see documentation on jQuery selectors <a href="http://api.jquery.com/category/selectors/">here</a>.
-        For example, if you use the selector "#circ_impossible" your selected sound will be trigger when a checkout for a patron is not possible ( such as the barcode not being found ).
+        For example, if you use the selector "#circ_impossible" your selected sound will be triggered when a checkout for a patron is not possible (such as the barcode not being found).
     <li>Enter a sound to be played, you can either select a built-in Koha sound using the pulldown selector, or you can enter a full URL to a sound file on another server.</li>
     <li>At this point, you can preview your sound by clicking the "Play sound" button</li>
     <li>Click "Save alert" and your done!</li>
-- 
1.7.2.5