Bugzilla – Attachment 193356 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: Add Koha::Exceptions::PatronAccountLink
Bug-39658-Add-KohaExceptionsPatronAccountLink.patch (text/plain), 2.48 KB, created by
Jacob O'Mara
on 2026-02-18 14:20:54 UTC
(
hide
)
Description:
Bug 39658: Add Koha::Exceptions::PatronAccountLink
Filename:
MIME Type:
Creator:
Jacob O'Mara
Created:
2026-02-18 14:20:54 UTC
Size:
2.48 KB
patch
obsolete
>From 54cd39905e44db5a606e15fc6e131ead6e4026ad Mon Sep 17 00:00:00 2001 >From: Jacob O'Mara <Jacob.omara@openfifth.co.uk> >Date: Wed, 21 Jan 2026 15:36:17 +0000 >Subject: [PATCH] Bug 39658: Add Koha::Exceptions::PatronAccountLink > >Add typed exceptions for patron account linking: >- AlreadyLinked: patrons already in same group >- DifferentGroups: patrons in different groups >--- > Koha/Exceptions/PatronAccountLink.pm | 56 ++++++++++++++++++++++++++++ > 1 file changed, 56 insertions(+) > create mode 100644 Koha/Exceptions/PatronAccountLink.pm > >diff --git a/Koha/Exceptions/PatronAccountLink.pm b/Koha/Exceptions/PatronAccountLink.pm >new file mode 100644 >index 00000000000..2621f91a254 >--- /dev/null >+++ b/Koha/Exceptions/PatronAccountLink.pm >@@ -0,0 +1,56 @@ >+package Koha::Exceptions::PatronAccountLink; >+ >+# This file is part of Koha. >+# >+# Koha is free software; you can redistribute it and/or modify it >+# under the terms of the GNU General Public License as published by >+# the Free Software Foundation; either version 3 of the License, or >+# (at your option) any later version. >+# >+# Koha is distributed in the hope that it will be useful, but >+# WITHOUT ANY WARRANTY; without even the implied warranty of >+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the >+# GNU General Public License for more details. >+# >+# You should have received a copy of the GNU General Public License >+# along with Koha; if not, see <https://www.gnu.org/licenses>. >+ >+use Modern::Perl; >+ >+use Koha::Exception; >+ >+use Exception::Class ( >+ 'Koha::Exceptions::PatronAccountLink' => { >+ isa => 'Koha::Exception', >+ }, >+ 'Koha::Exceptions::PatronAccountLink::AlreadyLinked' => { >+ isa => 'Koha::Exceptions::PatronAccountLink', >+ description => "Patrons are already linked together", >+ }, >+ 'Koha::Exceptions::PatronAccountLink::DifferentGroups' => { >+ isa => 'Koha::Exceptions::PatronAccountLink', >+ description => "Both patrons already belong to different link groups", >+ }, >+); >+ >+=head1 NAME >+ >+Koha::Exceptions::PatronAccountLink - Base class for PatronAccountLink exceptions >+ >+=head1 Exceptions >+ >+=head2 Koha::Exceptions::PatronAccountLink >+ >+Generic PatronAccountLink exception >+ >+=head2 Koha::Exceptions::PatronAccountLink::AlreadyLinked >+ >+Exception to be used when patrons are already linked together. >+ >+=head2 Koha::Exceptions::PatronAccountLink::DifferentGroups >+ >+Exception to be used when both patrons already belong to different link groups. >+ >+=cut >+ >+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 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