Bugzilla – Attachment 103095 Details for
Bug 25086
OPAC Self Registration - Field 'changed_fields' doesn't have a default value
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 25086: set changed_fields column if not defined
Bug-25086-set-changedfields-column-if-not-defined.patch (text/plain), 1.13 KB, created by
Agustín Moyano
on 2020-04-16 18:25:50 UTC
(
hide
)
Description:
Bug 25086: set changed_fields column if not defined
Filename:
MIME Type:
Creator:
Agustín Moyano
Created:
2020-04-16 18:25:50 UTC
Size:
1.13 KB
patch
obsolete
>From 5345819195b5ff1dcb675fded92048a0b3e4ad05 Mon Sep 17 00:00:00 2001 >From: Agustin Moyano <agustinmoyano@theke.io> >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 <victor@tuxayo.net> >--- > 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.25.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 25086
:
102600
|
102893
|
103024
|
103025
|
103038
|
103093
|
103094
|
103095
|
103096
|
103097
|
103098
|
103115