Bugzilla – Attachment 91461 Details for
Bug 23281
Add Koha::Objects::Limit::Library
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23281: Cleanup Koha::Patron::Attribute::Types->search
Bug-23281-Cleanup-KohaPatronAttributeTypes-search.patch (text/plain), 1.52 KB, created by
Kyle M Hall
on 2019-07-11 10:21:05 UTC
(
hide
)
Description:
Bug 23281: Cleanup Koha::Patron::Attribute::Types->search
Filename:
MIME Type:
Creator:
Kyle M Hall
Created:
2019-07-11 10:21:05 UTC
Size:
1.52 KB
patch
obsolete
>From 6b8d0ddc09d806cd20151ab0429bdbee5b9c2cc3 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Mon, 8 Jul 2019 15:23:09 -0300 >Subject: [PATCH] Bug 23281: Cleanup Koha::Patron::Attribute::Types->search > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > Koha/Patron/Attribute/Types.pm | 32 ++------------------------------ > 1 file changed, 2 insertions(+), 30 deletions(-) > >diff --git a/Koha/Patron/Attribute/Types.pm b/Koha/Patron/Attribute/Types.pm >index 5064fd2479..dfd9c227fa 100644 >--- a/Koha/Patron/Attribute/Types.pm >+++ b/Koha/Patron/Attribute/Types.pm >@@ -27,39 +27,11 @@ Koha::Patron::Attribute::Types Object set class > > =head1 API > >-=head2 Class Methods >+=head2 Internal methods > > =cut > >-=head3 Koha::Patron::Attribute::Types->search(); >- >-my @attribute_types = Koha::Patron::Attribute::Types->search($params); >- >-=cut >- >-sub search { >- my ( $self, $params, $attributes ) = @_; >- >- my $branchcode = $params->{branchcode}; >- delete( $params->{branchcode} ); >- >- my $or = >- $branchcode >- ? { >- '-or' => [ >- 'borrower_attribute_types_branches.b_branchcode' => undef, >- 'borrower_attribute_types_branches.b_branchcode' => $branchcode, >- ] >- } >- : {}; >- my $join = $branchcode ? { join => 'borrower_attribute_types_branches' } : {}; >- $attributes //= {}; >- $attributes = { %$attributes, %$join }; >- return $self->SUPER::search( { %$params, %$or, }, $attributes ); >-} >- >- >-=head3 type >+=head3 _type > > =cut > >-- >2.20.1 (Apple Git-117)
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 23281
:
91415
|
91416
|
91417
|
91459
|
91460
|
91461
|
92337
|
92338
|
92339