[Koha-patches] [PATCH] Bug 7338: Link on serial collection page wrong

Katrin Fischer Katrin.Fischer.83 at web.de
Fri Dec 9 07:44:05 CET 2011


This was a scoping error. The links are not supposed to show up
when you open that page with a subscription id in the URL.

To test:
1) Check links don't show up now.
---
 .../prog/en/modules/serials/serials-collection.tt  |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-collection.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-collection.tt
index 93c4fdc..f7538b7 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-collection.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-collection.tt
@@ -183,7 +183,7 @@ $(document).ready(function() {
 <div id="subscription-year-[% year.year %]">
         <table>
 	  <tr>
-[% UNLESS ( year.onesubscription ) %]
+[% UNLESS ( onesubscription ) %]
                 <th># Subs</th>
 [% END %]
                 <th>Date published
@@ -205,7 +205,7 @@ $(document).ready(function() {
             </tr>
       [% FOREACH serial IN year.serials %]
     [% UNLESS ( loop.odd ) %]<tr class="highlight">[% ELSE %]<tr>[% END %]
-[% UNLESS ( serial.onesubscription ) %]
+[% UNLESS ( onesubscription ) %]
                  <td><a href="serials-collection.pl?subscriptionid=[% serial.subscriptionid %]">[% serial.subscriptionid %]</a></td>
 [% END %]
                 <td>
-- 
1.7.5.4



More information about the Koha-patches mailing list