Bugzilla – Attachment 169367 Details for
Bug 28762
Item status shows incorrectly on course-details.pl
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28762: (QA follow-up) Restore protection against unknown itemtypes
Bug-28762-QA-follow-up-Restore-protection-against-.patch (text/plain), 917 bytes, created by
Nick Clemens (kidclamp)
on 2024-07-22 19:10:59 UTC
(
hide
)
Description:
Bug 28762: (QA follow-up) Restore protection against unknown itemtypes
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2024-07-22 19:10:59 UTC
Size:
917 bytes
patch
obsolete
>From 2917d6bdd276b89a0260e2c0e544b4222ca5b0c9 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Mon, 22 Jul 2024 19:02:22 +0000 >Subject: [PATCH] Bug 28762: (QA follow-up) Restore protection against unknown > itemtypes > >Signed-off-by: Nick Clemens <nick@bywatersolutions.com> >--- > Koha/Item.pm | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/Koha/Item.pm b/Koha/Item.pm >index 64c18e47f47..45a4f43cf38 100644 >--- a/Koha/Item.pm >+++ b/Koha/Item.pm >@@ -1843,7 +1843,8 @@ Returns the effective not for loan status of the item > > sub effective_not_for_loan_status { > my ($self) = @_; >- my $itype_notforloan = $self->itemtype->notforloan; >+ my $itemtype = $self->itemtype; >+ my $itype_notforloan = $itemtype ? $itemtype->notforloan : undef; > return ( defined($itype_notforloan) && !$self->notforloan ) ? $itype_notforloan : $self->notforloan; > } > >-- >2.39.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 28762
:
123233
|
123234
|
123236
|
123237
|
124661
|
124666
|
124667
|
124668
|
124744
|
125220
|
125228
|
125229
|
125233
|
161563
|
161564
|
161565
|
161566
|
161567
|
161568
|
161569
|
161570
|
161571
|
161572
|
161573
|
161574
|
161584
|
161585
|
161586
|
161587
|
161588
|
161589
|
161590
|
161591
|
163310
|
163311
|
163312
|
163313
|
163314
|
163315
|
163316
|
163317
|
165843
|
165844
|
165845
|
165846
|
165847
|
165848
|
165849
|
165850
|
169172
|
169273
|
169274
|
169275
|
169276
|
169277
|
169278
|
169279
|
169280
|
169281
|
169311
|
169312
|
169313
|
169314
|
169354
|
169355
|
169356
|
169357
|
169358
|
169359
|
169360
|
169361
|
169362
|
169363
|
169364
|
169365
|
169366
| 169367 |
169393