Bugzilla – Attachment 193807 Details for
Bug 39658
Allow definition of non-hierarchical linked patron accounts
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 39658: Patron detail: Pass linked accounts to template
Bug-39658-Patron-detail-Pass-linked-accounts-to-te.patch (text/plain), 1.38 KB, created by
Kellie Stephens
on 2026-02-24 21:13:47 UTC
(
hide
)
Description:
Bug 39658: Patron detail: Pass linked accounts to template
Filename:
MIME Type:
Creator:
Kellie Stephens
Created:
2026-02-24 21:13:47 UTC
Size:
1.38 KB
patch
obsolete
>From 3159c87b768fbd5f64aa3e6b35b4df98e9635c08 Mon Sep 17 00:00:00 2001 >From: Jacob O'Mara <Jacob.omara@openfifth.co.uk> >Date: Wed, 21 Jan 2026 15:36:16 +0000 >Subject: [PATCH] Bug 39658: Patron detail: Pass linked accounts to template > >Add linked_accounts and link_group data for display. > >Signed-off-by: Trevor Diamond <trevor.diamond@mainlib.org> >Signed-off-by: Kellie Stephens <kellie.stephens@bywatersolutions.com> >--- > members/moremember.pl | 15 +++++++++++++++ > 1 file changed, 15 insertions(+) > >diff --git a/members/moremember.pl b/members/moremember.pl >index b64a58e300..19d72f0f21 100755 >--- a/members/moremember.pl >+++ b/members/moremember.pl >@@ -114,6 +114,21 @@ $template->param( > guarantor_relationships => $guarantor_relationships, > guarantees => \@guarantees, > ); >+ >+# Get linked accounts if feature is enabled >+my @linked_accounts; >+my $linked_accounts_debt = 0; >+if ( C4::Context->preference('EnablePatronAccountLinking') ) { >+ @linked_accounts = $patron->linked_accounts->as_list; >+ if (@linked_accounts) { >+ $linked_accounts_debt = $patron->linked_accounts_debt; >+ } >+} >+$template->param( >+ linked_accounts => \@linked_accounts, >+ linked_accounts_debt => $linked_accounts_debt, >+); >+ > if ( C4::Context->preference('ChildNeedsGuarantor') > and ( $patron->is_child or $category->can_be_guarantee ) > and $patron->contactname eq "" >-- >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 39658
:
193344
|
193345
|
193346
|
193347
|
193348
|
193349
|
193350
|
193351
|
193352
|
193353
|
193354
|
193355
|
193356
|
193357
|
193358
|
193359
|
193462
|
193463
|
193464
|
193465
|
193466
|
193467
|
193468
|
193469
|
193470
|
193471
|
193472
|
193473
|
193474
|
193475
|
193476
|
193477
|
193478
|
193479
|
193781
|
193782
|
193783
|
193784
|
193785
|
193786
|
193787
|
193788
|
193789
|
193790
|
193791
|
193792
|
193793
|
193794
|
193795
|
193796
|
193797
|
193798
|
193800
|
193801
|
193802
|
193803
|
193804
|
193805
|
193806
| 193807 |
193808
|
193809
|
193810
|
193811
|
193812
|
193813
|
193814
|
193815
|
193816
|
193817