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

(-)a/tools/export.pl (-3 / +3 lines)
Lines 47-57 my ($template, $loggedinuser, $cookie) Link Here
47
47
48
	my $limit_ind_branch=(C4::Context->preference('IndependantBranches') &&
48
	my $limit_ind_branch=(C4::Context->preference('IndependantBranches') &&
49
              C4::Context->userenv &&
49
              C4::Context->userenv &&
50
              C4::Context->userenv->{flags} % 2 !=1  &&
50
              !(C4::Context->userenv->{flags} & 1) &&
51
              C4::Context->userenv->{branch}?1:0);
51
              C4::Context->userenv->{branch}?1:0);
52
	my $branches = GetBranches($limit_ind_branch);    
52
	my $branches = GetBranches($limit_ind_branch);    
53
    my $branch                = $query->param("branch") || '';
53
    my $branch                = $query->param("branch") || '';
54
	if ( C4::Context->preference("IndependantBranches") ) {
54
	if ( C4::Context->preference("IndependantBranches") &&
55
         !(C4::Context->userenv->{flags} & 1) ) {
55
    	$branch = C4::Context->userenv->{'branch'};
56
    	$branch = C4::Context->userenv->{'branch'};
56
	}
57
	}
57
58
58
- 

Return to bug 7505