Bug 8795: Adding the login branch as default in orderreceive.tt
[koha.git] / C4 / Items.pm
index aa5a954..012ec8a 100644 (file)
@@ -2720,6 +2720,7 @@ sub PrepareItemrecordDisplay {
                                 $authorised_lib{$branchcode} = $branchname;
                             }
                         }
+                        $defaultvalue = C4::Context->userenv->{branch};
 
                         #----- itemtypes
                     } elsif ( $tagslib->{$tag}->{$subfield}->{authorised_value} eq "itemtypes" ) {