Bugzilla – Attachment 87883 Details for
Bug 21975
Unnecessary substitutions in automatic item modification by age
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 21975 : (followup 2) avoid undef in eq
Bug-21975--followup-2-avoid-undef-in-eq.patch (text/plain), 1.14 KB, created by
Martin Renvoize (ashimema)
on 2019-04-12 11:57:09 UTC
(
hide
)
Description:
Bug 21975 : (followup 2) avoid undef in eq
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2019-04-12 11:57:09 UTC
Size:
1.14 KB
patch
obsolete
>From c91b1e773c9b00147e7bc56ecc6bfb3f54aa5bba Mon Sep 17 00:00:00 2001 >From: Fridolin Somers <fridolin.somers@biblibre.com> >Date: Fri, 12 Apr 2019 11:51:52 +0200 >Subject: [PATCH] Bug 21975 : (followup 2) avoid undef in eq > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > C4/Items.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/C4/Items.pm b/C4/Items.pm >index f0f70c7307..fdf262f7ed 100644 >--- a/C4/Items.pm >+++ b/C4/Items.pm >@@ -2643,7 +2643,7 @@ sub ToggleNewStatus { > my $itemnumber = $values->{itemnumber}; > for my $substitution ( @$substitutions ) { > next unless $substitution->{field}; >- next if ( $values->{ $substitution->{item_field} } eq $substitution->{value} ); >+ next if ( defined $values->{ $substitution->{item_field} } and $values->{ $substitution->{item_field} } eq $substitution->{value} ); > C4::Items::ModItem( { $substitution->{item_field} => $substitution->{value} }, $biblionumber, $itemnumber ) > unless $report_only; > push @{ $report->{$itemnumber} }, $substitution; >-- >2.20.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 21975
:
82983
|
82984
|
82985
|
87575
|
87576
|
87577
|
87876
|
87877
|
87879
|
87880
|
87881
|
87882
|
87883
|
87889
|
87890
|
87891
|
87892
|
87893