Bugzilla – Attachment 180026 Details for
Bug 39226
[WARN] DBIx::Class::Storage::DBI::insert(): Missing value for primary key column 'borrowernumber' on BorrowerModification
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 39226: Add borrowernumber 0 when creating patron modification
Bug-39226-Add-borrowernumber-0-when-creating-patro.patch (text/plain), 1.19 KB, created by
Emily Lamancusa (emlam)
on 2025-03-31 12:44:21 UTC
(
hide
)
Description:
Bug 39226: Add borrowernumber 0 when creating patron modification
Filename:
MIME Type:
Creator:
Emily Lamancusa (emlam)
Created:
2025-03-31 12:44:21 UTC
Size:
1.19 KB
patch
obsolete
>From 973890260bd404f6a36a8c1b5a718cdc669cc780 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Mon, 3 Mar 2025 13:09:12 +0000 >Subject: [PATCH] Bug 39226: Add borrowernumber 0 when creating patron > modification > >Test plan: >Test with and without this patch. Verify that you see no warn with Missing >value for primary key column anymore in plack-opac-error. >Enable self registration. >Register a new patron. > >Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de> >Signed-off-by: Emily Lamancusa <emily.lamancusa@montgomerycountymd.gov> >--- > opac/opac-memberentry.pl | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/opac/opac-memberentry.pl b/opac/opac-memberentry.pl >index b89ddbc547e..a28420bbb95 100755 >--- a/opac/opac-memberentry.pl >+++ b/opac/opac-memberentry.pl >@@ -197,6 +197,7 @@ if ( $op eq 'cud-create' ) { > $borrower{verification_token} = $verification_token; > > $borrower{extended_attributes} = to_json($attributes); >+ $borrower{borrowernumber} = 0; # prevent warn Missing value for PK column > Koha::Patron::Modification->new( \%borrower )->store(); > > #Send verification email >-- >2.34.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 39226
:
178891
|
179956
|
179965
|
179973
|
179981
|
179982
| 180026 |
180027