MT 1885 : Fixed patron notification when adding subscription
authorMatthias Meusburger <matthias.meusburger@biblibre.com>
Thu, 17 Sep 2009 08:56:41 +0000 (10:56 +0200)
committerHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Wed, 30 Sep 2009 09:30:36 +0000 (11:30 +0200)
koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tmpl
serials/subscription-add.pl

index 985e636..8f52903 100644 (file)
@@ -190,7 +190,7 @@ $(document).ready(function() {
                                     <!--TMPL_ELSE-->
                                     <option value="catalogue" >Catalog</option>
                                     <!--/TMPL_IF-->
-                                    <!--TMPL_IF Name="Serial"-->
+                                    <!--TMPL_IF Name="serial"-->
                                     <option value="serial" selected="selected">Serials (Routing List)</option>
                                     <!--TMPL_ELSE-->
                                     <option value="serial">Serials (Routing List)</option>
index 6df47f3..c8f049b 100755 (executable)
@@ -304,7 +304,6 @@ if ($op eq 'addsubscription') {
     }
     print $query->redirect("/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=$subscriptionid");
 } else {
-
         while (@subscription_types) {
            my $sub_type = shift @subscription_types;
            my %row = ( 'name' => $sub_type );
@@ -318,6 +317,8 @@ if ($op eq 'addsubscription') {
     $template->param(subtype => \@sub_type_data,
        );
 
+    letter_loop('', $template);
+
     my $new_biblionumber = $query->param('biblionumber_for_new_subscription');
     if (defined $new_biblionumber) {
         my $bib = GetBiblioData($new_biblionumber);