Bugzilla – Attachment 178597 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.26 KB, created by
Martin Renvoize (ashimema)
on 2025-02-24 16:29:52 UTC
(
hide
)
Description:
Bug 38924: Add koha_object_class to Schema files
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2025-02-24 16:29:52 UTC
Size:
2.26 KB
patch
obsolete
>From 35b5dd11776e3382bf7a6d17756db1dc778f652f 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/PatronQuota.pm | 19 +++++++++++++++++++ > Koha/Schema/Result/PatronQuotaUsage.pm | 19 ++++++++++++++++--- > 2 files changed, 35 insertions(+), 3 deletions(-) > >diff --git a/Koha/Schema/Result/PatronQuota.pm b/Koha/Schema/Result/PatronQuota.pm >index 42a7fb33a87..8c2512d1187 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 > >+=head3 koha_object_class >+ >+Returns the package name for patron quota objects >+ >+=cut >+ >+sub koha_object_class { >+ return 'Koha::Patron::Quota'; >+} > > # You can replace this text with custom code or comments, and it will be preserved on regeneration >+ >+sub koha_object_class { >+ return 'Koha::Patron::Quota'; >+} >+ >+sub koha_objects_class { >+ return 'Koha::Patron::Quotas'; >+} >+ >+ > 1; >diff --git a/Koha/Schema/Result/PatronQuotaUsage.pm b/Koha/Schema/Result/PatronQuotaUsage.pm >index 87035c8032f..43508504ac1 100644 >--- a/Koha/Schema/Result/PatronQuotaUsage.pm >+++ b/Koha/Schema/Result/PatronQuotaUsage.pm >@@ -44,7 +44,7 @@ foreign key linking to patron_quota.id > data_type: 'integer' > is_nullable: 1 > >-foreign key linking to issues.issue_id >+linking to issues.issue_id or old_issues.issue_id > > =head2 patron_id > >@@ -112,9 +112,22 @@ __PACKAGE__->belongs_to( > ); > > >-# Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-01-31 16:17:33 >-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:V5C3mWjeEHKuqk42HnrxOg >+# Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-02-07 14:14:27 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:/UbHmNOqiKX4ZjaDZOKi0Q > > >+sub koha_object_class { >+ return 'Koha::Patron::Quota::Usage'; >+} >+ > # You can replace this text with custom code or comments, and it will be preserved on regeneration >+ >+sub koha_object_class { >+ return 'Koha::Patron::Quota::Usage'; >+} >+ >+sub koha_objects_class { >+ return 'Koha::Patron::Quota::Usages'; >+} >+ > 1; >-- >2.48.1
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