From f9bb69441f7688ab87cd5176752e480b4392d0fb Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 14 Sep 2015 15:40:16 +0100 Subject: [PATCH] Bug 14811: Do not update permanent_location if location is CART or PROC --- cataloguing/additem.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cataloguing/additem.pl b/cataloguing/additem.pl index 38f5d92..7e94125 100755 --- a/cataloguing/additem.pl +++ b/cataloguing/additem.pl @@ -70,6 +70,8 @@ sub get_item_from_barcode { } sub set_item_default_location { + return if $item->{location} eq 'CART' + or $item->{location} eq 'PROC'; my $itemnumber = shift; my $item = GetItem( $itemnumber ); if ( C4::Context->preference('NewItemsDefaultLocation') ) { -- 2.1.0