diff --git a/Koha/ItemType.pm b/Koha/ItemType.pm index 24be0d2297..ec685296de 100644 --- a/Koha/ItemType.pm +++ b/Koha/ItemType.pm @@ -36,6 +36,18 @@ Koha::ItemType - Koha Item type Object class =cut +sub store { + my ($self) = @_; + + $self->rentalcharge(undef) if $self->rentalcharge eq ''; + $self->defaultreplacecost(undef) if $self->defaultreplacecost eq ''; + $self->processfee(undef) if $self->processfee eq ''; + $self->notforloan(0) unless $self->notforloan; + $self->hideinopac(0) unless $self->hideinopac; + + return $self->SUPER::store; +} + =head3 image_location =cut