Permalink
Browse files

[#24502945] Running Suppressed item through checkin removes suppress …

…status

Changed the assignment of default values to an item's withdrawn, suppressed,
or not for loan status.
  • Loading branch information...
1 parent 6f6cbf9 commit 932c54b83595b1ecdaa42d15ca5f16691c25a4de @dlbptfs dlbptfs committed with ctfliblime Mar 13, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/C4/Items.pm
View
6 lib/C4/Items.pm
@@ -2218,9 +2218,9 @@ sub _koha_modify_item {
my $error;
my $query = "UPDATE items SET ";
my @bind;
- $$item{notforloan} //= 0;
- $$item{suppress} //= 0;
- $$item{wthdrawn} //= 0;
+ for (qw(notforloan suppress withdrawn)) {
+ $item->{$_} //= 0 if exists $item->{$_};
+ }
if (($$item{notforloan} != 0)
|| ($$item{suppress} != 0)
|| ($$item{wthdrawn} != 0) ) {

0 comments on commit 932c54b

Please sign in to comment.