From fffe25080084a1e154b879110824fbbd8f86432c Mon Sep 17 00:00:00 2001
From: Kyle M Hall <kyle@bywatersolutions.com>
Date: Wed, 8 Jun 2016 10:24:56 +0000
Subject: [PATCH] Bug 16692 - Error "No method update!" when creating new
 serial issue

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>
---
 C4/Serials.pm |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/C4/Serials.pm b/C4/Serials.pm
index eca9b13..f38b03b 100644
--- a/C4/Serials.pm
+++ b/C4/Serials.pm
@@ -1599,7 +1599,7 @@ sub NewIssue {
 
     $subscription_history->recievedlist($recievedlist);
     $subscription_history->missinglist($missinglist);
-    $subscription_history->update();
+    $subscription_history->store();
 
     return $serialid;
 }
-- 
1.7.10.4