diff --git a/serials/serials-edit.pl b/serials/serials-edit.pl index afe9110b46..ad0deb50a4 100755 --- a/serials/serials-edit.pl +++ b/serials/serials-edit.pl @@ -267,7 +267,8 @@ if ( $op and $op eq 'serialchangestatus' ) { my $subscriptioninfos = GetSubscription($subscriptionids[$i]); # Changing the status to "available" and the itemtype according to the previousitemtype db field - $serialitem->set( + my $item = Koha::Items->find($itemnumber); + $item->set( { notforloan => 0, itype => $subscriptioninfos->{'previousitemtype'}