Bugzilla – Attachment 193512 Details for
Bug 41897
Remove C4::Context from Koha::Objects::Limit::Library
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 41897: Remove C4::Context from Koha::Objects::Limit::Library
b0b0397.patch (text/plain), 1.09 KB, created by
Jonathan Druart
on 2026-02-20 10:25:41 UTC
(
hide
)
Description:
Bug 41897: Remove C4::Context from Koha::Objects::Limit::Library
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2026-02-20 10:25:41 UTC
Size:
1.09 KB
patch
obsolete
>From b0b03978016b34d6db05aae4e0c40590763108d3 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 20 Feb 2026 11:21:43 +0100 >Subject: [PATCH] Bug 41897: Remove C4::Context from > Koha::Objects::Limit::Library > >--- > Koha/Objects/Limit/Library.pm | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > >diff --git a/Koha/Objects/Limit/Library.pm b/Koha/Objects/Limit/Library.pm >index 212930e9b06..d03cd3ab525 100644 >--- a/Koha/Objects/Limit/Library.pm >+++ b/Koha/Objects/Limit/Library.pm >@@ -17,7 +17,7 @@ package Koha::Objects::Limit::Library; > > use Modern::Perl; > >-use C4::Context; >+use Koha::Context::UserEnv; > use Koha::Database; > > =head1 NAME >@@ -54,8 +54,8 @@ limits > sub search_with_library_limits { > my ( $self, $params, $attributes, $library_id ) = @_; > >- $library_id //= C4::Context->userenv->{branch} >- if defined C4::Context->userenv; >+ $library_id //= Koha::Context::UserEnv->get('branch') >+ if defined Koha::Context::UserEnv->exists; > > return $self->search( $params, $attributes ) unless $library_id; > >-- >2.43.0 >
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 41897
: 193512