From 528382ca8c5effd90c95af62c2bcfdfc6d20601e Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Sat, 16 Jul 2011 22:11:20 +0200 Subject: [PATCH] Bug 6589: Adding supplements broken Content-Type: text/plain; charset="utf-8" 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. --- .../prog/en/modules/serials/serials-edit.tt | 2 +- serials/serials-edit.pl | 1 + 2 files changed, 2 insertions(+), 1 deletions(-) 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 83df447..304c6ca 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 fbf9ad5..db7620c 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; -- 1.7.4.1