Bugzilla – Attachment 189290 Details for
Bug 38924
Introduce an organization level loan 'Quota' system for Koha
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 38924: Add koha_object_class to Schema files
Bug-38924-Add-kohaobjectclass-to-Schema-files.patch (text/plain), 2.46 KB, created by
Jacob O'Mara
on 2025-11-07 12:13:53 UTC
(
hide
)
Description:
Bug 38924: Add koha_object_class to Schema files
Filename:
MIME Type:
Creator:
Jacob O'Mara
Created:
2025-11-07 12:13:53 UTC
Size:
2.46 KB
patch
obsolete
>From fabb2bc896a8248405f183ec025e4475fc9b9a27 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Mon, 24 Feb 2025 14:57:44 +0000 >Subject: [PATCH] Bug 38924: Add koha_object_class to Schema files > >--- > Koha/Schema/Result/Issue.pm | 8 +++++++- > Koha/Schema/Result/PatronQuota.pm | 21 ++++++++++++++++++++- > Koha/Schema/Result/PatronQuotaUsage.pm | 21 ++++++++++++++++++++- > 3 files changed, 47 insertions(+), 3 deletions(-) > >diff --git a/Koha/Schema/Result/Issue.pm b/Koha/Schema/Result/Issue.pm >index ffb83a50e63..a90f1ca3310 100644 >--- a/Koha/Schema/Result/Issue.pm >+++ b/Koha/Schema/Result/Issue.pm >@@ -468,13 +468,19 @@ __PACKAGE__->has_many( > 'issue_id' > ); > >+=head2 koha_object_class >+ >+Returns the Koha object class for this result. >+ >+=cut >+ > sub koha_object_class { > 'Koha::Checkout'; > } > > =head2 koha_objects_class > >-Missing POD for koha_objects_class. >+Returns the Koha objects class for this result. > > =cut > >diff --git a/Koha/Schema/Result/PatronQuota.pm b/Koha/Schema/Result/PatronQuota.pm >index 42a7fb33a87..4dd24121b82 100644 >--- a/Koha/Schema/Result/PatronQuota.pm >+++ b/Koha/Schema/Result/PatronQuota.pm >@@ -145,6 +145,25 @@ __PACKAGE__->has_many( > # Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-01-30 16:04:36 > # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:KG/MIjPSLcpeSlPypwli2Q > >+=head2 koha_object_class >+ >+Returns the Koha object class for this result. >+ >+=cut >+ >+sub koha_object_class { >+ return 'Koha::Patron::Quota'; >+} >+ >+=head2 koha_objects_class >+ >+Returns the Koha objects class for this result. >+ >+=cut >+ >+sub koha_objects_class { >+ return 'Koha::Patron::Quotas'; >+} >+ > >-# You can replace this text with custom code or comments, and it will be preserved on regeneration > 1; >diff --git a/Koha/Schema/Result/PatronQuotaUsage.pm b/Koha/Schema/Result/PatronQuotaUsage.pm >index dd54662f96a..ee82abbe1ce 100644 >--- a/Koha/Schema/Result/PatronQuotaUsage.pm >+++ b/Koha/Schema/Result/PatronQuotaUsage.pm >@@ -173,5 +173,24 @@ __PACKAGE__->belongs_to( > { join_type => 'left' } > ); > >-# You can replace this text with custom code or comments, and it will be preserved on regeneration >+=head2 koha_object_class >+ >+Returns the Koha object class for this result. >+ >+=cut >+ >+sub koha_object_class { >+ return 'Koha::Patron::Quota::Usage'; >+} >+ >+=head2 koha_objects_class >+ >+Returns the Koha objects class for this result. >+ >+=cut >+ >+sub koha_objects_class { >+ return 'Koha::Patron::Quota::Usages'; >+} >+ > 1; >-- >2.39.5
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 38924
:
178582
|
178583
|
178584
|
178585
|
178586
|
178587
|
178588
|
178589
|
178590
|
178591
|
178592
|
178593
|
178594
|
178595
|
178596
|
178597
|
178598
|
178599
|
178600
|
178601
|
178602
|
178603
|
178604
|
178605
|
178606
|
178607
|
178608
|
185631
|
185632
|
185633
|
185634
|
185635
|
185636
|
185637
|
185638
|
185639
|
185640
|
185641
|
185642
|
185643
|
185644
|
185645
|
185646
|
185647
|
185648
|
185649
|
185650
|
185651
|
185652
|
185653
|
185654
|
185655
|
185656
|
185657
|
185675
|
185676
|
185677
|
185678
|
185679
|
185680
|
185681
|
185682
|
185683
|
185684
|
185685
|
185686
|
185687
|
185688
|
185689
|
185690
|
185691
|
185692
|
185693
|
185694
|
185695
|
185696
|
185697
|
185698
|
185699
|
185700
|
185701
|
185702
|
189266
|
189267
|
189268
|
189269
|
189270
|
189271
|
189272
|
189273
|
189274
|
189275
|
189276
|
189277
|
189278
|
189279
|
189280
|
189281
|
189282
|
189283
|
189284
|
189285
|
189286
|
189287
|
189288
|
189289
| 189290 |
189291
|
189292