Bugzilla – Attachment 26985 Details for
Bug 11518
Add new method to Koha::Schema::Result::Item that will always return the correct itemtype
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 11518 [QA Followup]
-Bug-11518-QA-Followup.patch (text/plain), 903 bytes, created by
Kyle M Hall (khall)
on 2014-04-10 17:48:15 UTC
(
hide
)
Description:
Bug 11518 [QA Followup]
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2014-04-10 17:48:15 UTC
Size:
903 bytes
patch
obsolete
>From 3c00e4a3c072045e1dd09f3b903a3d7cfe84f164 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Thu, 10 Apr 2014 13:46:34 -0400 >Subject: [PATCH] Bug 11518 [QA Followup] > >--- > Koha/Schema/Result/Item.pm | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > >diff --git a/Koha/Schema/Result/Item.pm b/Koha/Schema/Result/Item.pm >index 6a1e0d2..f211390 100644 >--- a/Koha/Schema/Result/Item.pm >+++ b/Koha/Schema/Result/Item.pm >@@ -624,11 +624,11 @@ __PACKAGE__->belongs_to( > { biblioitemnumber => "biblioitemnumber" }, > ); > >-use C4::Context; > sub effective_itemtype { > my ( $self ) = @_; > >- if ( C4::Context->preference('item-level_itypes') ) { >+ my $pref = $self->resultset('Systempreference')->find('item-level_itypes'); >+ if ( $pref->value() ) { > return $self->itype(); > } else { > return $self->biblioitem()->itemtype(); >-- >1.7.2.5
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 11518
:
24121
|
24143
|
25448
|
25510
|
26983
|
26985
|
26987
|
27343
|
27344
|
27345
|
27346
|
27347
|
27348
|
29544
|
31240
|
31241
|
31242