From d80659ce3543d01e0f9e4f280b63f76d00d2a27b Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Thu, 14 Jul 2011 04:02:46 -0400 Subject: [PATCH] Bug 6589: Adding supplements broken To test: - add a new subscription, choose 'create items on receive' - receive some issues and create items > should work ok - create a supplement, alone or at the same time as receiving a normal issue - check if item was created and attached to the biblio record Without patch this should give you an error message. Although supplement will be created, no item will be added to the bibliogrpahic record. With patch applied there should be no error message and the item should be created and attached to the proper record. Signed-off-by: Nicole C. Engard Signed-off-by: Chris Cormack --- koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-edit.tt | 2 +- serials/serials-edit.pl | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-edit.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-edit.tt index 83df44752d..304c6ca8a4 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-edit.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-edit.tt @@ -394,7 +394,7 @@ $(document).ready(function() { [% iteminformatio.marc_value %] - + diff --git a/serials/serials-edit.pl b/serials/serials-edit.pl index fbf9ad598b..db7620c413 100755 --- a/serials/serials-edit.pl +++ b/serials/serials-edit.pl @@ -176,6 +176,7 @@ foreach my $subscriptionid (@subscriptionids) { $cell->{serialsadditems} = 1; } $cell->{'subscriptionid'} = $subscriptionid; + $cell->{biblionumber} = $serialdatalist[0]->{'biblionumber'}; $cell->{'itemid'} = 'NNEW'; $cell->{'serialid'} = 'NEW'; $cell->{'issuesatonce'} = 1; -- 2.39.5