From 4d5130b923310acdd4d165247f3a18f00c3ba30e Mon Sep 17 00:00:00 2001 From: Agustin Moyano Date: Wed, 8 Apr 2020 16:53:43 -0300 Subject: [PATCH] Bug 25086: set changed_fields column if not defined This patch sets changed_fields column to '' if not defined To test: 1. Do not apply this patch 2. Set PatronSelfRegistrationVerifyByEmail preference to require 3. Fill self registration form in opac and submit CHECK => OPAC dies with a nasty message, that says Field 'changed_fields' doesn't have a default value 4. Apply this patch and restart_all 5. Repeat step 3 SUCCESS => Registry process continues as expected 6. Sign off Sponsored-by: Orex Digital Signed-off-by: Victor Grousset/tuxayo --- Koha/Patron/Modification.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Koha/Patron/Modification.pm b/Koha/Patron/Modification.pm index 51f182a80b..375b6886ad 100644 --- a/Koha/Patron/Modification.pm +++ b/Koha/Patron/Modification.pm @@ -70,6 +70,8 @@ sub store { }; } + $self->changed_fields('') unless defined $self->changed_fields; + return $self->SUPER::store(); } -- 2.26.0