Bugzilla – Attachment 36116 Details for
Bug 13746
On creating a new subscription, notes fields get confused
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 13746: On creating a new subscription, notes fields get confused
Bug-13746-On-creating-a-new-subscription-notes-fie.patch (text/plain), 1.84 KB, created by
Katrin Fischer
on 2015-02-21 21:56:12 UTC
(
hide
)
Description:
Bug 13746: On creating a new subscription, notes fields get confused
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2015-02-21 21:56:12 UTC
Size:
1.84 KB
patch
obsolete
>From 4289a0352d3bea5bf3b0c91792b0a64067f939c5 Mon Sep 17 00:00:00 2001 >From: Katrin Fischer <Katrin.Fischer.83@web.de> >Date: Sat, 21 Feb 2015 22:52:30 +0100 >Subject: [PATCH] Bug 13746: On creating a new subscription, notes fields get > confused > >For every subscription we have 4 notes fields in Koha, 2 are in the >subscription itself and another 2 are in the subscription history. > >When creating a new subscription, the notes fields from the >subscription get copied to the fields of the subscription history, >leading to doubled up display of notes in the OPAC. > >To test: >- Add a new subscription without patch > - check manual history > - Fill in both notes fields >- Verify that the notes fields got also saved into the > subscription history (easy from the Summary tab) >- Apply patch >- Add another subscription, like above >- Verify now only the subscription notes fields are saved >- Edit subscription and notes - verify all is ok >- Edit subscription history (Planning tab) - verify all is ok >--- > C4/Serials.pm | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > >diff --git a/C4/Serials.pm b/C4/Serials.pm >index 49325cb..538d4bd 100644 >--- a/C4/Serials.pm >+++ b/C4/Serials.pm >@@ -1432,11 +1432,11 @@ sub NewSubscription { > # then create the 1st expected number > $query = qq( > INSERT INTO subscriptionhistory >- (biblionumber, subscriptionid, histstartdate, opacnote, librariannote) >- VALUES (?,?,?,?,?) >+ (biblionumber, subscriptionid, histstartdate) >+ VALUES (?,?,?) > ); > $sth = $dbh->prepare($query); >- $sth->execute( $biblionumber, $subscriptionid, $startdate, $notes, $internalnotes ); >+ $sth->execute( $biblionumber, $subscriptionid, $startdate); > > # reread subscription to get a hash (for calculation of the 1st issue number) > my $subscription = GetSubscription($subscriptionid); >-- >1.9.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 13746
:
36116
|
36126
|
36165
|
36166