Bug 16692 - Error "No method update!" when creating new serial issue
authorKyle M Hall <kyle@bywatersolutions.com>
Wed, 8 Jun 2016 10:24:56 +0000 (10:24 +0000)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 17 Jun 2016 14:37:00 +0000 (14:37 +0000)
An improper method call was left over in C4::Serials::NewIssue from the
switch from DBIx::Class to Koha::Object.

Test Plan:
1) prove t/db_dependent/Serials.t
2) Note the errors
3) Apply this patch
4) prove t/db_dependent/Serials.t
5) No errors!

Signed-off-by: Jacek Ablewicz <abl@biblos.pk.edu.pl>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
C4/Serials.pm

index 39e0e96..02349a4 100644 (file)
@@ -1600,7 +1600,7 @@ sub NewIssue {
 
     $subscription_history->recievedlist($recievedlist);
     $subscription_history->missinglist($missinglist);
-    $subscription_history->update();
+    $subscription_history->store();
 
     return $serialid;
 }