Bugzilla – Attachment 192024 Details for
Bug 41695
Suggestion->refuser returns the manager
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 41695: Fix rejecter in suggestion.pm
03bfb2b.patch (text/plain), 1.10 KB, created by
Jonathan Druart
on 2026-01-26 11:11:36 UTC
(
hide
)
Description:
Bug 41695: Fix rejecter in suggestion.pm
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2026-01-26 11:11:36 UTC
Size:
1.10 KB
patch
obsolete
>From 03bfb2be5f701018f553c497628e2a4b2d713b99 Mon Sep 17 00:00:00 2001 >From: Baptiste Wojtkowski <baptiste.wojtkowski@biblibre.com> >Date: Fri, 23 Jan 2026 13:37:47 +0000 >Subject: [PATCH] Bug 41695: Fix rejecter in suggestion.pm > >TEST PLAN: >1 - Apply tests patch >2 - Run 'prove t/db_dependent/Koha/Suggestions.t' -> it fails on >rejecter >3 - Apply this patch >4 - Run 'prove t/db_dependent/Koha/Suggestions.t' -> it works > >Note: this patch also provide tests for remaining accessors in the >subtest > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > Koha/Suggestion.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/Koha/Suggestion.pm b/Koha/Suggestion.pm >index 339116df518..229ee83d06e 100644 >--- a/Koha/Suggestion.pm >+++ b/Koha/Suggestion.pm >@@ -195,7 +195,7 @@ Returns the rejecter of the suggestion (Koha::Patron for rejectebby field) > > sub rejecter { > my ($self) = @_; >- my $rejecter_rs = $self->_result->managedby; >+ my $rejecter_rs = $self->_result->rejectedby; > return unless $rejecter_rs; > return Koha::Patron->_new_from_dbic($rejecter_rs); > } >-- >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 41695
:
191929
|
191930
|
191936
|
192023
| 192024