[Koha-patches] [PATCH 6/7] bug 3481 followup - ensure permanent location is stored when updating item

Galen Charlton gmcharlt at gmail.com
Sun Aug 23 19:07:05 CEST 2009


Signed-off-by: Galen Charlton <gmcharlt at gmail.com>
---
 C4/Items.pm |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/C4/Items.pm b/C4/Items.pm
index 6215804..3f550ef 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
-- 
1.6.3.3



More information about the Koha-patches mailing list