Bugzilla – Attachment 170777 Details for
Bug 36919
t/db_dependent/Koha/Object.t produces warnings
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36919: Remove a warning from Koha/Object.t
Bug-36919-Remove-a-warning-from-KohaObjectt.patch (text/plain), 1.10 KB, created by
Lucas Gass (lukeg)
on 2024-08-27 16:40:58 UTC
(
hide
)
Description:
Bug 36919: Remove a warning from Koha/Object.t
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2024-08-27 16:40:58 UTC
Size:
1.10 KB
patch
obsolete
>From 1609f4bff4c1eb1074be2b6130b2faa65ffeea83 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 22 May 2024 11:22:06 +0200 >Subject: [PATCH] Bug 36919: Remove a warning from Koha/Object.t > >Use of uninitialized value in numeric eq (==) at /kohadevbox/koha/Koha/Patron.pm line 446. > >Signed-off-by: David Nind <david@davidnind.com> >Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> >--- > Koha/Patron.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/Koha/Patron.pm b/Koha/Patron.pm >index 7234a3be5bc..3e4e89c7990 100644 >--- a/Koha/Patron.pm >+++ b/Koha/Patron.pm >@@ -443,7 +443,7 @@ sub delete { > Koha::Exceptions::Patron::FailedDeleteAnonymousPatron->throw() if $anonymous_patron && $self->id eq $anonymous_patron; > > # Check if patron is protected >- Koha::Exceptions::Patron::FailedDeleteProtectedPatron->throw() if $self->protected == 1; >+ Koha::Exceptions::Patron::FailedDeleteProtectedPatron->throw() if defined $self->protected && $self->protected == 1; > > $self->_result->result_source->schema->txn_do( > sub { >-- >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 36919
:
167014
|
167015
|
167016
|
167057
|
167058
|
167059
| 170777 |
170778
|
170779