Bugzilla – Attachment 83432 Details for
Bug 22033
related_resultset is a hole in the Koha::Object logic
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22033: Remove related_resultset from the list of available methods
Bug-22033-Remove-relatedresultset-from-the-list-of.patch (text/plain), 1.27 KB, created by
Jonathan Druart
on 2018-12-20 21:56:37 UTC
(
hide
)
Description:
Bug 22033: Remove related_resultset from the list of available methods
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2018-12-20 21:56:37 UTC
Size:
1.27 KB
patch
obsolete
>From 94e142fd749ae20f96ab860793d8ca82daa75f2e Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 20 Dec 2018 18:55:34 -0300 >Subject: [PATCH] Bug 22033: Remove related_resultset from the list of > available methods > >It is not covered by tests. >--- > Koha/Object.pm | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/Koha/Object.pm b/Koha/Object.pm >index e62af3eb11..2dc135e2d1 100644 >--- a/Koha/Object.pm >+++ b/Koha/Object.pm >@@ -321,7 +321,7 @@ sub unblessed_all_relateds { > > my %data; > my $related_resultsets = $self->_result->{related_resultsets} || {}; >- my $rs = $self; >+ my $rs = $self->_result; > while ( $related_resultsets and %$related_resultsets ) { > my @relations = keys %{ $related_resultsets }; > if ( @relations ) { >@@ -404,7 +404,7 @@ sub AUTOLOAD { > } > } > >- my @known_methods = qw( is_changed id in_storage get_column discard_changes update related_resultset make_column_dirty ); >+ my @known_methods = qw( is_changed id in_storage get_column discard_changes update make_column_dirty ); > > Koha::Exceptions::Object::MethodNotCoveredByTests->throw( > error => sprintf("The method %s->%s is not covered by tests!", ref($self), $method), >-- >2.11.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 22033
:
83432
|
83441