Bugzilla – Attachment 4640 Details for
Bug 6589
can't add supplements
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch
0001-Bug-6589-Adding-supplements-broken.patch (text/plain), 2.51 KB, created by
Katrin Fischer
on 2011-07-16 20:18:01 UTC
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2011-07-16 20:18:01 UTC
Size:
2.51 KB
patch
obsolete
>From 528382ca8c5effd90c95af62c2bcfdfc6d20601e Mon Sep 17 00:00:00 2001 >From: Katrin Fischer <Katrin.Fischer.83@web.de> >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() { > > <label>[% iteminformatio.subfield %] - [% IF ( iteminformatio.mandatory ) %]<b>[% END %][% iteminformatio.marc_lib %][% IF ( iteminformatio.mandatory ) %] *</b>[% END %]</label> > [% iteminformatio.marc_value %] >- <input type="hidden" name="itemid" value="[% iteminformatio.itemid %]" /> >+ <input type="hidden" name="itemid" value="[% newserialloo.itemid %]" /> > <input type="hidden" name="kohafield" value="[% iteminformatio.kohafield %]" /> > <input type="hidden" name="tag" value="[% iteminformatio.tag %]" /> > <input type="hidden" name="subfield" value="[% iteminformatio.subfield %]" /> >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 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 6589
: 4640