X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=admin%2Fbranches.pl;h=08a73f6571f5f6d7695caba727c15a4104d552e4;hb=2be3e079708e5beb0453e3534a9098af710cb3e5;hp=40b2b346e2fc722b552a2647c72c990a02125f07;hpb=e53667105d98dde0500323cb9699bf217c2f2508;p=koha-ffzg.git diff --git a/admin/branches.pl b/admin/branches.pl index 40b2b346e2..08a73f6571 100755 --- a/admin/branches.pl +++ b/admin/branches.pl @@ -49,17 +49,9 @@ my ( $template, $borrowernumber, $cookie ) = get_template_and_user( ); if ( $op eq 'add_form' ) { - my $library; - if ($branchcode) { - $library = Koha::Libraries->find($branchcode); - $template->param( selected_smtp_server => $library->smtp_server ); - } - - my @smtp_servers = Koha::SMTP::Servers->search->as_list; - $template->param( - library => $library, - smtp_servers => \@smtp_servers + library => Koha::Libraries->find($branchcode), + smtp_servers => Koha::SMTP::Servers->search, ); } elsif ( $op eq 'add_validate' ) { my @fields = qw(