Bug 39226: Add borrowernumber 0 when creating patron modification
Test plan:
Test with and without this patch. Verify that you see no warn with Missing
value for primary key column anymore in plack-opac-error.
Enable self registration.
Register a new patron.
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 c7bdbf937c)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
52cef274bd
commit
e9b4a1da3d
|
|
@ -201,6 +201,7 @@ if ( $op eq 'cud-create' ) {
|
|||
$borrower{verification_token} = $verification_token;
|
||||
|
||||
$borrower{extended_attributes} = to_json($attributes);
|
||||
$borrower{borrowernumber} = 0; # prevent warn Missing value for PK column
|
||||
Koha::Patron::Modification->new( \%borrower )->store();
|
||||
|
||||
#Send verification email
|
||||
|
|
|
|||
Loading…
Reference in New Issue