From 88e822bfd7a7952189d59613368de1c83789123a Mon Sep 17 00:00:00 2001 From: Christophe Croullebois Date: Thu, 20 Sep 2012 09:16:19 +0200 Subject: [PATCH] Bug 8795: Adding the login branch as default in orderreceive.tt The homebranch and holdingbranch ddl in item block are not default selected. I just put the default choice as the login branch. Signed-off-by: Owen Leonard Before the patch, orderreceive.pl showed the branches alphabetically. After the patch, it automatically selects the branch I'm logged in to. Signed-off-by: Jonathan Druart Signed-off-by: Marcel de Rooy Signed-off-by: Jared Camins-Esakov --- C4/Items.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/C4/Items.pm b/C4/Items.pm index aa5a954ba0..012ec8a730 100644 --- a/C4/Items.pm +++ b/C4/Items.pm @@ -2720,6 +2720,7 @@ sub PrepareItemrecordDisplay { $authorised_lib{$branchcode} = $branchname; } } + $defaultvalue = C4::Context->userenv->{branch}; #----- itemtypes } elsif ( $tagslib->{$tag}->{$subfield}->{authorised_value} eq "itemtypes" ) { -- 2.39.2