Bugzilla – Attachment 167007 Details for
Bug 35929
Don't submit 'empty' changes to personal details in OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 35929: Remove extra parenthesis
Bug-35929-Remove-extra-parenthesis.patch (text/plain), 1.19 KB, created by
Jonathan Druart
on 2024-05-22 08:04:22 UTC
(
hide
)
Description:
Bug 35929: Remove extra parenthesis
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2024-05-22 08:04:22 UTC
Size:
1.19 KB
patch
obsolete
>From f9aa11b7cb6dd50ae007add7bcc4910f002c5e44 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 22 May 2024 09:52:04 +0200 >Subject: [PATCH] Bug 35929: Remove extra parenthesis > >and make it more readable > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > opac/opac-memberentry.pl | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > >diff --git a/opac/opac-memberentry.pl b/opac/opac-memberentry.pl >index af8ee15e7e7..4577b25a64b 100755 >--- a/opac/opac-memberentry.pl >+++ b/opac/opac-memberentry.pl >@@ -575,9 +575,11 @@ sub DelUnchangedFields { > # get the hidden fields so we don't obliterate them should they have data patrons aren't allowed to modify > my $hidden_fields = GetHiddenFields($mandatory, 'edit'); > >- > foreach my $key ( keys %new_data ) { >- next if ( ($new_data{$key} || $current_data->{$key}) && ( $new_data{$key} ne $current_data->{$key} ) && !($hidden_fields->{$key}) ); >+ next >+ if ( $new_data{$key} || $current_data->{$key} ) >+ && $new_data{$key} ne $current_data->{$key} >+ && !$hidden_fields->{$key}; > delete $new_data{$key}; > } > >-- >2.34.1
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 35929
:
166022
|
166023
|
167006
| 167007