Bugzilla – Attachment 167057 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.04 KB, created by
David Nind
on 2024-05-23 04:16:10 UTC
(
hide
)
Description:
Bug 36919: Remove a warning from Koha/Object.t
Filename:
MIME Type:
Creator:
David Nind
Created:
2024-05-23 04:16:10 UTC
Size:
1.04 KB
patch
obsolete
>From b04e98beeb46cf519c8a2b556ad6c4816b976ffb 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> >--- > Koha/Patron.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/Koha/Patron.pm b/Koha/Patron.pm >index 1691c9d25b..6b402a5be2 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