Bugzilla – Attachment 194347 Details for
Bug 37346
The VirtualShelf object should have an 'owner' accessor to return the related owner Koha::Patron
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 37346: DBIC - DO NOT PUSH
611645a.patch (text/plain), 2.70 KB, created by
Jake Deery
on 2026-03-02 17:56:44 UTC
(
hide
)
Description:
Bug 37346: DBIC - DO NOT PUSH
Filename:
MIME Type:
Creator:
Jake Deery
Created:
2026-03-02 17:56:44 UTC
Size:
2.70 KB
patch
obsolete
>From 611645a6170f02793942fdc7724f42354c9cf5bb Mon Sep 17 00:00:00 2001 >From: Jake Deery <jake.deery@openfifth.co.uk> >Date: Mon, 2 Mar 2026 13:04:20 +0000 >Subject: [PATCH] Bug 37346: DBIC - DO NOT PUSH > >--- > Koha/Schema/Result/Borrower.pm | 6 +++--- > Koha/Schema/Result/Virtualshelve.pm | 10 +++++----- > 2 files changed, 8 insertions(+), 8 deletions(-) > >diff --git a/Koha/Schema/Result/Borrower.pm b/Koha/Schema/Result/Borrower.pm >index 2c8bf77f78b..d18bcbb12f4 100644 >--- a/Koha/Schema/Result/Borrower.pm >+++ b/Koha/Schema/Result/Borrower.pm >@@ -2157,7 +2157,7 @@ Related object: L<Koha::Schema::Result::Virtualshelve> > __PACKAGE__->has_many( > "virtualshelves", > "Koha::Schema::Result::Virtualshelve", >- { "foreign.owner" => "self.borrowernumber" }, >+ { "foreign.owner_id" => "self.borrowernumber" }, > { cascade_copy => 0, cascade_delete => 0 }, > ); > >@@ -2212,8 +2212,8 @@ Composing rels: L</user_permissions> -> permission > __PACKAGE__->many_to_many("permissions", "user_permissions", "permission"); > > >-# Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-10-29 16:44:27 >-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:SSJcjPvlr82qecmbk1Q8iA >+# Created by DBIx::Class::Schema::Loader v0.07051 @ 2026-03-02 13:02:45 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:0AKVBQau2POdoPO8cnejYQ > > __PACKAGE__->belongs_to( > "library", >diff --git a/Koha/Schema/Result/Virtualshelve.pm b/Koha/Schema/Result/Virtualshelve.pm >index 0680cd05867..64425075079 100644 >--- a/Koha/Schema/Result/Virtualshelve.pm >+++ b/Koha/Schema/Result/Virtualshelve.pm >@@ -39,7 +39,7 @@ unique identifier assigned by Koha > > name of the list > >-=head2 owner >+=head2 owner_id > > data_type: 'integer' > is_foreign_key: 1 >@@ -120,7 +120,7 @@ __PACKAGE__->add_columns( > { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, > "shelfname", > { data_type => "varchar", is_nullable => 1, size => 255 }, >- "owner", >+ "owner_id", > { data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, > "public", > { data_type => "tinyint", default_value => 0, is_nullable => 0 }, >@@ -179,7 +179,7 @@ Related object: L<Koha::Schema::Result::Borrower> > __PACKAGE__->belongs_to( > "owner", > "Koha::Schema::Result::Borrower", >- { borrowernumber => "owner" }, >+ { borrowernumber => "owner_id" }, > { > is_deferrable => 1, > join_type => "LEFT", >@@ -219,8 +219,8 @@ __PACKAGE__->has_many( > ); > > >-# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-08-17 19:59:33 >-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:EKq7nDW2AeZ2NQce2BPMWA >+# Created by DBIx::Class::Schema::Loader v0.07051 @ 2026-03-02 13:02:45 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:EDGKMMT7lAa8ReI9gNKJPg > > =head2 koha_object_class > >-- >2.50.1 (Apple Git-155) >
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 37346
:
170494
|
174478
|
194345
|
194346
| 194347