From 17d6ad5ef4826e5666e8afcef6744d52aade0a31 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 5 Aug 2019 08:40:12 -0500 Subject: [PATCH] Bug 23428: (bug 23151 follow-up) Fix self registration with a verification email DBIx::Class::Row::store_column(): No such column 'changed_fields' on Koha::Schema::Result::Borrower at /home/vagrant/kohaclone/Koha/Object.pm line 75 Test plan: - Turn PatronSelfRegistrationVerifyByEmail on - Register a new account - Click on the link (see the message_queue table) => Without this patch you get the error => With this patch you will see the login form Signed-off-by: Michal Denar Signed-off-by: Katrin Fischer Signed-off-by: Martin Renvoize (cherry picked from commit c5f73575ab07e75b45e5e9495820b602225c75f5) Signed-off-by: Fridolin Somers (cherry picked from commit a94bacb02a856bd9b3dbe9ba2ed05c11fbef5bed) Signed-off-by: Lucas Gass --- opac/opac-registration-verify.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/opac/opac-registration-verify.pl b/opac/opac-registration-verify.pl index ce78ffa807..58a12a017c 100755 --- a/opac/opac-registration-verify.pl +++ b/opac/opac-registration-verify.pl @@ -67,6 +67,7 @@ if ( $patron_attrs->{categorycode} ||= C4::Context->preference('PatronSelfRegistrationDefaultCategory'); delete $patron_attrs->{timestamp}; delete $patron_attrs->{verification_token}; + delete $patron_attrs->{changed_fields}; my $patron = Koha::Patron->new( $patron_attrs )->store; Koha::Patron::Consent->new({ borrowernumber => $patron->borrowernumber, type => 'GDPR_PROCESSING', given_on => $consent_dt })->store if $consent_dt; -- 2.20.1