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>
(cherry picked from commit 7fb30a073e)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
Marcel de Rooy 2025-03-31 09:51:19 +00:00 committed by Fridolin Somers
parent e9b4a1da3d
commit 714247f592
No known key found for this signature in database
GPG Key ID: 9A8E73E2A8B96537
1 changed files with 1 additions and 0 deletions

View File

@ -354,6 +354,7 @@ elsif ( $op eq 'cud-update' ) {
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