From e9b4a1da3da7662332590f6dbba7f97d45bd3ab6 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy 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 Signed-off-by: Emily Lamancusa Signed-off-by: Katrin Fischer (cherry picked from commit c7bdbf937c4411e80883b6d41afe63670d592d50) Signed-off-by: Fridolin Somers --- opac/opac-memberentry.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/opac/opac-memberentry.pl b/opac/opac-memberentry.pl index f94f690f5b..2ab1092f62 100755 --- a/opac/opac-memberentry.pl +++ b/opac/opac-memberentry.pl @@ -201,6 +201,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