Bug 35929: Remove extra parenthesis
and make it more readable Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de> (cherry picked from commitad41c672a1
) Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com> (cherry picked from commitae53cf4eea
) Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
2e8a9bd95d
commit
6104cb3c08
1 changed files with 4 additions and 2 deletions
|
@ -577,9 +577,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};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue