View | Details | Raw Unified | Return to bug 6875
Collapse All | Expand All

(-)a/C4/Items.pm (-3 / +2 lines)
Lines 653-659 sub CheckItemPreSave { Link Here
653
653
654
    # check for valid home branch
654
    # check for valid home branch
655
    if (exists $item_ref->{'homebranch'} and defined $item_ref->{'homebranch'}) {
655
    if (exists $item_ref->{'homebranch'} and defined $item_ref->{'homebranch'}) {
656
        my $branch_name = GetBranchName($item_ref->{'homebranch'});
656
        my $branch_name = C4::Branch::GetBranchName($item_ref->{'homebranch'});
657
        unless (defined $branch_name) {
657
        unless (defined $branch_name) {
658
            # relies on fact that branches.branchname is a non-NULL column,
658
            # relies on fact that branches.branchname is a non-NULL column,
659
            # so GetBranchName returns undef only if branch does not exist
659
            # so GetBranchName returns undef only if branch does not exist
Lines 663-669 sub CheckItemPreSave { Link Here
663
663
664
    # check for valid holding branch
664
    # check for valid holding branch
665
    if (exists $item_ref->{'holdingbranch'} and defined $item_ref->{'holdingbranch'}) {
665
    if (exists $item_ref->{'holdingbranch'} and defined $item_ref->{'holdingbranch'}) {
666
        my $branch_name = GetBranchName($item_ref->{'holdingbranch'});
666
        my $branch_name = C4::Branch::GetBranchName($item_ref->{'holdingbranch'});
667
        unless (defined $branch_name) {
667
        unless (defined $branch_name) {
668
            # relies on fact that branches.branchname is a non-NULL column,
668
            # relies on fact that branches.branchname is a non-NULL column,
669
            # so GetBranchName returns undef only if branch does not exist
669
            # so GetBranchName returns undef only if branch does not exist
670
- 

Return to bug 6875