From de9ffe1dd83c5841881e3bc4d622e4a8c6df5bd7 Mon Sep 17 00:00:00 2001
From: Jared Camins-Esakov <jcamins@cpbibliography.com>
Date: Sun, 10 Feb 2013 13:39:50 -0500
Subject: [PATCH] Bug 7608: Manual history should not always be enabled

When editing a subscription, the "manual history" block is visible even
if the subscription was created with manual history off.

To test:
1) Create a subscription and do not check the "Manual history" checkbox.
2) Save the subscription.
3) Edit the subscription. Note that the manual history section does not
   appear.
4) Enable manual history. Note the appearance of the manual history
   section.
5) Save the subscription.
6) Edit the subscription. Note that the manual history section appears.
7) Click "[cancel manual history]". Note the disappearance of the manual
   history section, and the unchecking of the "Manual history" checkbox.
8) Sign off on patch.
---
 .../prog/en/modules/serials/subscription-add.tt    |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-add.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-add.tt
index 4ab5c11..35d4187 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-add.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-add.tt
@@ -930,7 +930,7 @@ $(document).ready(function() {
         }
     });
 
-	[% IF ( history ) %] $("#subscription_form_history").show();[% END %]
+    [% IF ( manualhistory ) %] $("#subscription_form_history").show();[% END %]
 	$("#cancel_manual_history").click(function(){
 		$("#subscription_form_history").hide();
         $("#manuallist").removeAttr("checked");
-- 
1.7.9.5