Bugzilla – Attachment 151938 Details for
Bug 17499
Koha objects for messaging preferences
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 17499: Define koha_object(s)_class where needed
Bug-17499-Define-kohaobjectsclass-where-needed.patch (text/plain), 3.60 KB, created by
Sam Lau
on 2023-06-01 16:03:48 UTC
(
hide
)
Description:
Bug 17499: Define koha_object(s)_class where needed
Filename:
MIME Type:
Creator:
Sam Lau
Created:
2023-06-01 16:03:48 UTC
Size:
3.60 KB
patch
obsolete
>From 8777e351bb6fe6319c5b5637911b954f2bdc677d Mon Sep 17 00:00:00 2001 >From: Emmi Takkinen <emmi.takkinen@outlook.com> >Date: Thu, 20 Feb 2020 12:45:27 +0200 >Subject: [PATCH] Bug 17499: Define koha_object(s)_class where needed > >This patch adds koha_object(s)_class for needed modules >to fix issues with tests. > >Sponsored-by: Koha-Suomi Oy >Signed-off-by: David Nind <david@davidnind.com> >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> > >Signed-off-by: Michal Denar <black23@gmail.com> >Signed-off-by: Sam Lau <samalau@gmail.com> >--- > Koha/Schema/Result/BorrowerMessagePreference.pm | 8 ++++++++ > Koha/Schema/Result/BorrowerMessageTransportPreference.pm | 8 ++++++++ > Koha/Schema/Result/MessageAttribute.pm | 8 ++++++++ > Koha/Schema/Result/MessageTransport.pm | 8 ++++++++ > Koha/Schema/Result/MessageTransportType.pm | 8 ++++++++ > 5 files changed, 40 insertions(+) > >diff --git a/Koha/Schema/Result/BorrowerMessagePreference.pm b/Koha/Schema/Result/BorrowerMessagePreference.pm >index fd0c68b795..a7fcd20777 100644 >--- a/Koha/Schema/Result/BorrowerMessagePreference.pm >+++ b/Koha/Schema/Result/BorrowerMessagePreference.pm >@@ -193,4 +193,12 @@ __PACKAGE__->many_to_many( > > > # You can replace this text with custom content, and it will be preserved on regeneration >+ >+sub koha_object_class { >+ 'Koha::Patron::Message::Preference'; >+} >+sub koha_objects_class { >+ 'Koha::Patron::Message::Preferences'; >+} >+ > 1; >diff --git a/Koha/Schema/Result/BorrowerMessageTransportPreference.pm b/Koha/Schema/Result/BorrowerMessageTransportPreference.pm >index 10f3f460d0..be3751c6da 100644 >--- a/Koha/Schema/Result/BorrowerMessageTransportPreference.pm >+++ b/Koha/Schema/Result/BorrowerMessageTransportPreference.pm >@@ -112,4 +112,12 @@ __PACKAGE__->belongs_to( > > > # You can replace this text with custom content, and it will be preserved on regeneration >+ >+sub koha_object_class { >+ 'Koha::Patron::Message::Transport::Preference'; >+} >+sub koha_objects_class { >+ 'Koha::Patron::Message::Transport::Preferences'; >+} >+ > 1; >diff --git a/Koha/Schema/Result/MessageAttribute.pm b/Koha/Schema/Result/MessageAttribute.pm >index 8fc01b3f7e..e1357ac2b2 100644 >--- a/Koha/Schema/Result/MessageAttribute.pm >+++ b/Koha/Schema/Result/MessageAttribute.pm >@@ -117,4 +117,12 @@ __PACKAGE__->has_many( > > > # You can replace this text with custom content, and it will be preserved on regeneration >+ >+sub koha_object_class { >+ 'Koha::Patron::Message::Attribute'; >+} >+sub koha_objects_class { >+ 'Koha::Patron::Message::Attributes'; >+} >+ > 1; >diff --git a/Koha/Schema/Result/MessageTransport.pm b/Koha/Schema/Result/MessageTransport.pm >index 82e8ab2805..ee7bc79450 100644 >--- a/Koha/Schema/Result/MessageTransport.pm >+++ b/Koha/Schema/Result/MessageTransport.pm >@@ -134,4 +134,12 @@ __PACKAGE__->belongs_to( > > > # You can replace this text with custom content, and it will be preserved on regeneration >+ >+sub koha_object_class { >+ 'Koha::Patron::Message::Transport'; >+} >+sub koha_objects_class { >+ 'Koha::Patron::Message::Transports'; >+} >+ > 1; >diff --git a/Koha/Schema/Result/MessageTransportType.pm b/Koha/Schema/Result/MessageTransportType.pm >index 775d9a250e..060336977f 100644 >--- a/Koha/Schema/Result/MessageTransportType.pm >+++ b/Koha/Schema/Result/MessageTransportType.pm >@@ -155,4 +155,12 @@ __PACKAGE__->many_to_many( > > > # You can replace this text with custom content, and it will be preserved on regeneration >+ >+sub koha_object_class { >+ 'Koha::Patron::Message::Transport::Type'; >+} >+sub koha_objects_class { >+ 'Koha::Patron::Message::Transport::Types'; >+} >+ > 1; >-- >2.30.2
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 17499
:
63427
|
63428
|
63429
|
63430
|
63431
|
63432
|
63433
|
63434
|
63786
|
63787
|
63788
|
63789
|
63790
|
63791
|
63792
|
63793
|
63801
|
63802
|
63803
|
63804
|
63805
|
63806
|
63807
|
63808
|
63809
|
63810
|
63811
|
63812
|
63878
|
63895
|
64035
|
64036
|
64037
|
64038
|
64039
|
64040
|
64041
|
64042
|
64043
|
64044
|
64795
|
66686
|
69434
|
69435
|
69458
|
91864
|
93863
|
93865
|
93872
|
94748
|
99479
|
99634
|
99668
|
99669
|
99670
|
103441
|
103442
|
103443
|
106653
|
106654
|
106655
|
106656
|
106657
|
107612
|
107613
|
107614
|
107615
|
107616
|
113010
|
113011
|
113127
|
113129
|
113686
|
113687
|
113765
|
113766
|
113767
|
113768
|
118452
|
118453
|
119470
|
119471
|
119472
|
119473
|
119474
|
119475
|
119476
|
119477
|
119478
|
119479
|
119480
|
119481
|
119482
|
119483
|
119484
|
119485
|
119486
|
119487
|
119488
|
119489
|
119490
|
119491
|
141408
|
141409
|
141410
|
141411
|
141412
|
141413
|
141414
|
141415
|
141416
|
141417
|
141418
|
146529
|
146530
|
146531
|
146532
|
146533
|
146534
|
146535
|
146536
|
146537
|
146538
|
146539
|
146540
|
151900
|
151901
|
151902
|
151903
|
151904
|
151905
|
151906
|
151907
|
151908
|
151909
|
151910
|
151911
|
151937
|
151938
|
151939
|
151940
|
151941
|
151942
|
151943
|
151944
|
151945
|
151946
|
151947
|
151948
|
155365
|
155366
|
155367
|
155368
|
155369
|
155370
|
155371
|
155372
|
155373
|
155374
|
155375
|
155376