Bugzilla – Attachment 157437 Details for
Bug 33970
We need a "backend" column in "illrequestattributes" table
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33970: Compatability schim
Bug-33970-Compatability-schim.patch (text/plain), 1.31 KB, created by
Martin Renvoize (ashimema)
on 2023-10-19 13:40:27 UTC
(
hide
)
Description:
Bug 33970: Compatability schim
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2023-10-19 13:40:27 UTC
Size:
1.31 KB
patch
obsolete
>From 08dbf71db0e9ebe9422b2a815436e74d3fc476d2 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Thu, 19 Oct 2023 14:32:28 +0100 >Subject: [PATCH] Bug 33970: Compatability schim > >This adds a compatability option to allow older backends not passing >their backend code through to the attributes on store. > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > Koha/Illrequestattribute.pm | 29 +++++++++++++++++++++++++++++ > 1 file changed, 29 insertions(+) > >diff --git a/Koha/Illrequestattribute.pm b/Koha/Illrequestattribute.pm >index 6c0c584ddc4..b5b75dee3dc 100644 >--- a/Koha/Illrequestattribute.pm >+++ b/Koha/Illrequestattribute.pm >@@ -29,6 +29,35 @@ Koha::Illrequestattribute - Koha Illrequestattribute Object class > > =head1 API > >+=head2 Class methods >+ >+=head3 store >+ >+Overloaded store method to ensure we have backend filled if not already passed >+ >+=cut >+ >+sub store { >+ my ($self) = @_; >+ >+ if ( !$self->backend ) { >+ $self->backend( $self->request->backend ); >+ } >+ >+ return $self->SUPER::store; >+} >+ >+=head3 request >+ >+Returns a Koha::Illrequest object representing the core request. >+ >+=cut >+ >+sub request { >+ my ($self) = @_; >+ return Koha::Illrequest->_new_from_dbic( $self->_result->illrequest ); >+} >+ > =head2 Internal methods > > =head3 _type >-- >2.41.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 33970
:
152250
|
152251
|
152252
|
153263
|
153264
|
153265
|
154903
|
157433
|
157434
|
157435
|
157436
| 157437