MT 1883 : Subscription renewal didn't work with RenewSerialAddsSuggestion enabled
authorMatthias Meusburger <matthias.meusburger@biblibre.com>
Wed, 16 Sep 2009 15:12:22 +0000 (17:12 +0200)
committerHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Wed, 30 Sep 2009 09:30:34 +0000 (11:30 +0200)
C4/Serials.pm

index f7e90e0..01db3f1 100644 (file)
@@ -1484,14 +1484,15 @@ sub ReNewSubscription {
      $sth->execute( $subscription->{biblionumber} );
      my $biblio = $sth->fetchrow_hashref;
      if (C4::Context->preference("RenewSerialAddsSuggestion")){
-        NewSuggestion(
-            $user,             $subscription->{bibliotitle},
-            $biblio->{author}, $biblio->{publishercode},
-            $biblio->{note},   '',
-            '',                '',
-            '',                '',
-            $subscription->{biblionumber}
-        );
+
+        NewSuggestion({
+            'suggestedby'   => $user,             
+           'title'         => $subscription->{bibliotitle},
+            'author'        => $biblio->{author}, 
+           'publishercode' => $biblio->{publishercode},
+            'note'          => $biblio->{note}, 
+            'biblionumber'  => $subscription->{biblionumber}
+        });
     }
 
     # renew subscription