Bugzilla – Attachment 184458 Details for
Bug 40459
Preferred name is lost when editing partial record
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40459: Preferred name is lost when editing partial record to test:
Bug-40459-Preferred-name-is-lost-when-editing-part.patch (text/plain), 1.22 KB, created by
Imani
on 2025-07-21 20:43:01 UTC
(
hide
)
Description:
Bug 40459: Preferred name is lost when editing partial record to test:
Filename:
MIME Type:
Creator:
Imani
Created:
2025-07-21 20:43:01 UTC
Size:
1.22 KB
patch
obsolete
>From 3972c49243624d09fa1adb966c8e31c807614518 Mon Sep 17 00:00:00 2001 >From: Imani Thomas <imani.thomas@bywatersolutions.com> >Date: Mon, 21 Jul 2025 20:35:44 +0000 >Subject: [PATCH] Bug 40459: Preferred name is lost when editing partial record > to test: * follow test plan of previous patch * add preferred_name to > BorrowerUnwantedField * updating the full patron or contact information field > should update the preferred_name to the current first name > >--- > members/memberentry.pl | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > >diff --git a/members/memberentry.pl b/members/memberentry.pl >index b24dd5c63b..5f15a10555 100755 >--- a/members/memberentry.pl >+++ b/members/memberentry.pl >@@ -550,7 +550,9 @@ if ( ( !$nok ) and $nodouble and ( $op eq 'cud-insert' or $op eq 'cud-save' ) ) > $patron = Koha::Patrons->find($borrowernumber); > > # Ensure preferred name is set even if not passed because of BorrowerUnwantedFields >- #$newdata{preferred_name} = undef unless defined $newdata{preferred_name}; >+ if ( $step == 0 or $step == 1 ) { >+ $newdata{preferred_name} = undef unless defined $newdata{preferred_name}; >+ } > > if ($NoUpdateEmail) { > delete $newdata{'email'}; >-- >2.39.5
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 40459
:
184449
|
184458
|
184459
|
184624