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 <oleonard@myacpl.org>

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 <jonathan.druart@biblibre.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
This commit is contained in:
Christophe Croullebois 2012-09-20 09:16:19 +02:00 committed by Jared Camins-Esakov
parent 0c08501e9d
commit 88e822bfd7

View 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" ) {