Bug 39226: (follow-up) Similar change for the cud-update branch

Resolve
DBIx::Class::Storage::DBI::insert(): Missing value for primary key column 'verification_token' on BorrowerModification

Test plan:
Update details for existing borrower.

Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
Signed-off-by: Emily Lamancusa <emily.lamancusa@montgomerycountymd.gov>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Marcel de Rooy 2025-03-31 09:51:19 +00:00 committed by Katrin Fischer
parent c7bdbf937c
commit 7fb30a073e
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
1 changed files with 1 additions and 0 deletions

View File

@ -349,6 +349,7 @@ if ( $op eq 'cud-create' ) {
Koha::Patron::Modifications->search( { borrowernumber => $borrowernumber } )->delete;
$borrower_changes{verification_token} = q{}; # prevent warn Missing value for PK column
my $m = Koha::Patron::Modification->new( \%borrower_changes )->store();
#Automatically approve patron profile changes if set in syspref