bug 3481 followup - ensure permanent location is stored when updating item

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
This commit is contained in:
Galen Charlton 2009-08-23 12:53:06 -04:00
parent dafb3e20da
commit d2943ebc6c
1 changed files with 3 additions and 0 deletions

View File

@ -1759,6 +1759,9 @@ sub _do_column_fixes_for_mod {
(not defined $item->{'wthdrawn'} or $item->{'wthdrawn'} eq '')) {
$item->{'wthdrawn'} = 0;
}
if (exists $item->{'location'} && !exists $item->{'permanent_location'}) {
$item->{'permanent_location'} = $item->{'location'};
}
}
=head2 _get_single_item_column