Bug 18887: (QA follow-up) Remove last occurences of old max_holds
[koha.git] / admin / branch_transfer_limits.pl
index b745136..681f85b 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with Koha; if not, see <http://www.gnu.org/licenses>.
 
-use strict;
-use warnings;
+use Modern::Perl;
 
 use CGI qw ( -utf8 );
 use C4::Auth;
 use C4::Context;
 use C4::Output;
 use C4::Koha;
-use C4::Branch; 
 use C4::Circulation qw{ IsBranchTransferAllowed DeleteBranchTransferLimits CreateBranchTransferLimit };
 
 my $input = new CGI;
@@ -50,18 +48,6 @@ else
        $branchcode = $input->param('branchcode');
 }
 
-# Getting the branches for user selection
-my $branches = GetBranches();
-my @branch_loop;
-for my $thisbranch (sort { $branches->{$a}->{branchname} cmp $branches->{$b}->{branchname} } keys %$branches) {
-    my %row =(value => $thisbranch,
-              branchname => $branches->{$thisbranch}->{'branchname'},
-              selected => $thisbranch eq $branchcode ? 1 : 0,
-             );
-    push @branch_loop, \%row;
-}
-
-
 # Set the template language for the correct limit type using $limitType
 my $limitType = C4::Context->preference("BranchTransferLimitsType") || "ccode";
 
@@ -132,7 +118,6 @@ foreach my $code ( @codes ) {
 $template->param(
                branchcount => $branchcount,
                codes_loop => \@codes_loop,
-               branch_loop => \@branch_loop,
                branchcode_loop => \@branchcode_loop,
                branchcode => $branchcode,
         limitType => $limitType,