Bugzilla – Attachment 100955 Details for
Bug 24892
Resolve some warnings in opac-memberentry
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24892: Resolve uninitialized warns from opac-memberentry
Bug-24892-Resolve-uninitialized-warns-from-opac-me.patch (text/plain), 1.32 KB, created by
Marcel de Rooy
on 2020-03-18 13:58:08 UTC
(
hide
)
Description:
Bug 24892: Resolve uninitialized warns from opac-memberentry
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2020-03-18 13:58:08 UTC
Size:
1.32 KB
patch
obsolete
>From 47b3fd0ec15bcdd380bc040d749027fe1628564a Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Wed, 18 Mar 2020 13:54:52 +0000 >Subject: [PATCH] Bug 24892: Resolve uninitialized warns from opac-memberentry >Content-Type: text/plain; charset=utf-8 > >Especially line 500 (current master). > >Use of uninitialized value $new_data{"sort2"} in string eq at /usr/share/koha/opac/opac-memberentry.pl line 500. >Use of uninitialized value in string eq at /usr/share/koha/opac/opac-memberentry.pl line 500. > >Trivial fix. > >Test plan: >Do not apply, update from opac memberentry. Check warns in log. >Apply patch, update again. Less warns? > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > opac/opac-memberentry.pl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/opac/opac-memberentry.pl b/opac/opac-memberentry.pl >index 391a78f8e0..f535755122 100755 >--- a/opac/opac-memberentry.pl >+++ b/opac/opac-memberentry.pl >@@ -497,7 +497,7 @@ sub DelUnchangedFields { > > > foreach my $key ( keys %new_data ) { >- if ( ($current_data->{$key} eq $new_data{$key}) || $hidden_fields->{$key} ) { >+ if ( !defined($new_data{$key}) && !defined($current_data->{$key}) || $current_data->{$key} eq $new_data{$key} || $hidden_fields->{$key} ) { > delete $new_data{$key}; > } > } >-- >2.11.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 24892
:
100955
|
100967
|
101055
|
101115