Merge remote-tracking branch 'origin/new/bug_6875'

This commit is contained in:
Paul Poulain 2012-03-14 16:16:21 +01:00
commit 0ef6b0d5c6
1 changed files with 2 additions and 2 deletions

View File

@ -653,7 +653,7 @@ sub CheckItemPreSave {
# check for valid home branch
if (exists $item_ref->{'homebranch'} and defined $item_ref->{'homebranch'}) {
my $branch_name = GetBranchName($item_ref->{'homebranch'});
my $branch_name = C4::Branch::GetBranchName($item_ref->{'homebranch'});
unless (defined $branch_name) {
# relies on fact that branches.branchname is a non-NULL column,
# so GetBranchName returns undef only if branch does not exist
@ -663,7 +663,7 @@ sub CheckItemPreSave {
# check for valid holding branch
if (exists $item_ref->{'holdingbranch'} and defined $item_ref->{'holdingbranch'}) {
my $branch_name = GetBranchName($item_ref->{'holdingbranch'});
my $branch_name = C4::Branch::GetBranchName($item_ref->{'holdingbranch'});
unless (defined $branch_name) {
# relies on fact that branches.branchname is a non-NULL column,
# so GetBranchName returns undef only if branch does not exist