From d2943ebc6c360aa22cd35671dee7983c35ef8ec1 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Sun, 23 Aug 2009 12:53:06 -0400 Subject: [PATCH] bug 3481 followup - ensure permanent location is stored when updating item Signed-off-by: Galen Charlton --- C4/Items.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/C4/Items.pm b/C4/Items.pm index 621580436f..3f550ef4f5 100644 --- a/C4/Items.pm +++ b/C4/Items.pm @@ -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 -- 2.39.2