Bugzilla – Attachment 117580 Details for
Bug 25757
Add a Koha::Item::Transfer->transit method
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 25757: Add item relation to Koha::Item::Transfer
Bug-25757-Add-item-relation-to-KohaItemTransfer.patch (text/plain), 1.07 KB, created by
Jonathan Druart
on 2021-03-03 14:29:19 UTC
(
hide
)
Description:
Bug 25757: Add item relation to Koha::Item::Transfer
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2021-03-03 14:29:19 UTC
Size:
1.07 KB
patch
obsolete
>From 805404ae4f8f6d4ad75f62cacdcef6811190af92 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Tue, 16 Jun 2020 11:36:19 +0100 >Subject: [PATCH] Bug 25757: Add item relation to Koha::Item::Transfer >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >Signed-off-by: Kathleen Milne <kathleen.milne@cne-siar.gov.uk> >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >Signed-off-by: Joonas Kylmälä <joonas.kylmala@helsinki.fi> >--- > Koha/Item/Transfer.pm | 14 ++++++++++++++ > 1 file changed, 14 insertions(+) > >diff --git a/Koha/Item/Transfer.pm b/Koha/Item/Transfer.pm >index 4eb16b2347..50868aba76 100644 >--- a/Koha/Item/Transfer.pm >+++ b/Koha/Item/Transfer.pm >@@ -33,6 +33,20 @@ Koha::Item::Transfer - Koha Item Transfer Object class > > =cut > >+=head3 item >+ >+ my $item = $transfer->item; >+ >+Returns the associated item for this transfer. >+ >+=cut >+ >+sub item { >+ my ($self) = @_; >+ my $item_rs = $self->_result->itemnumber; >+ return Koha::Item->_new_from_dbic($item_rs); >+} >+ > =head3 type > > =cut >-- >2.20.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 25757
:
105900
|
105901
|
105902
|
107241
|
107242
|
107243
|
107296
|
107297
|
107298
|
110274
|
110275
|
110276
|
110296
|
110297
|
110298
|
110507
|
110508
|
110509
|
116547
|
116548
|
116549
| 117580 |
117581
|
117582