Bugzilla – Attachment 120240 Details for
Bug 27842
Incorrect biblionumber handling in serials subscriptions
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 27842: Update serial.biblionumber when a subscription is linked with another record
Bug-27842-Update-serialbiblionumber-when-a-subscri.patch (text/plain), 1.77 KB, created by
Tomás Cohen Arazi (tcohen)
on 2021-04-27 14:44:05 UTC
(
hide
)
Description:
Bug 27842: Update serial.biblionumber when a subscription is linked with another record
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2021-04-27 14:44:05 UTC
Size:
1.77 KB
patch
obsolete
>From 8f58393e02c6657f73114f0266001ef26eee1cb5 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 3 Mar 2021 12:21:33 +0100 >Subject: [PATCH] Bug 27842: Update serial.biblionumber when a subscription is > linked with another record > >It seems that a librarian can edit the biblionumber for a given subscription, however, when receiving serials the biblionumber is pulled from the existing serials, so all new received issues are received on the old biblionumber. > >This is problematic in light of bug 21901 - you can change the biblionumber, the serials still point to the old biblionumber - and deleting the biblio deletes the serials. Additionally, the update will delete serials where this was the case > >Test plan: >1 - Create a new subscription >2 - Receive an issue >3 - Edit the subscription and change the biblionumber >4 - Receive another issue >5 - SELECT biblionumber FROM serial >=> the biblionumber link must have been updated > >Signed-off-by: Petro Vashchuk <stalkernoid@gmail.com> > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > C4/Serials.pm | 3 +++ > 1 file changed, 3 insertions(+) > >diff --git a/C4/Serials.pm b/C4/Serials.pm >index b277871bee8..709a24315ad 100644 >--- a/C4/Serials.pm >+++ b/C4/Serials.pm >@@ -1355,6 +1355,9 @@ sub ModSubscription { > mana_id => $mana_id, > } > )->store; >+ # FIXME Must be $subscription->serials >+ # FIXME We shouldn't need serial.subscription (instead use serial->subscription->biblionumber) >+ Koha::Serials->search({ subscriptionid => $subscriptionid })->update({ biblionumber => $biblionumber }); > > logaction( "SERIAL", "MODIFY", $subscriptionid, "" ) if C4::Context->preference("SubscriptionLog"); > >-- >2.31.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 27842
:
117565
|
117566
|
117567
|
117677
|
117696
|
117697
|
117698
|
117712
|
120239
| 120240 |
120241