Bugzilla – Attachment 154952 Details for
Bug 34609
Holds history errors 500 if old_reserves.biblionumber is NULL
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 34609: Add biblio method to Old::Hold
Bug-34609-Add-biblio-method-to-OldHold.patch (text/plain), 835 bytes, created by
Pedro Amorim
on 2023-08-30 13:13:22 UTC
(
hide
)
Description:
Bug 34609: Add biblio method to Old::Hold
Filename:
MIME Type:
Creator:
Pedro Amorim
Created:
2023-08-30 13:13:22 UTC
Size:
835 bytes
patch
obsolete
>From 9e0eccb1e82098e843a18ef22b33193ba88235f4 Mon Sep 17 00:00:00 2001 >From: Pedro Amorim <pedro.amorim@ptfs-europe.com> >Date: Wed, 30 Aug 2023 13:12:31 +0000 >Subject: [PATCH] Bug 34609: Add biblio method to Old::Hold > >--- > Koha/Old/Hold.pm | 13 +++++++++++++ > 1 file changed, 13 insertions(+) > >diff --git a/Koha/Old/Hold.pm b/Koha/Old/Hold.pm >index aa164fcd2a..91f2adb39c 100644 >--- a/Koha/Old/Hold.pm >+++ b/Koha/Old/Hold.pm >@@ -34,6 +34,19 @@ This object represents a hold that has been filled or canceled > > =head2 Class methods > >+=head3 biblio >+ >+Returns the related Koha::Biblio object for this old hold >+ >+=cut >+ >+sub biblio { >+ my ($self) = @_; >+ my $rs = $self->_result->biblionumber; >+ return unless $rs; >+ return Koha::Biblio->_new_from_dbic($rs); >+} >+ > =head3 anonymize > > $old_hold->anonymize(); >-- >2.30.2
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 34609
:
154738
|
154901
|
154952
|
154953
|
154954
|
154993
|
154994
|
154995