From d7510dbb76cb32b15411fedfa7860489efc82914 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 17 Apr 2017 12:18:31 -0300 Subject: [PATCH] Bug 17855: No need to resend the library list to the template This has been done at the beginning of the script Signed-off-by: Alex Buckley --- installer/onboarding.pl | 50 ------------------------------------------------- 1 file changed, 50 deletions(-) diff --git a/installer/onboarding.pl b/installer/onboarding.pl index d8de8ef..0dfb24a 100755 --- a/installer/onboarding.pl +++ b/installer/onboarding.pl @@ -233,31 +233,6 @@ elsif ( $step && $step == 3 ) { $template->param( 'patrons' =>$currentpatrons); -#Find all library records in the database and hand them to the template to display in the library dropdown box - my $libraries = - Koha::Libraries->search( {}, { order_by => ['branchcode'] }, ); - $template->param( - libraries => $libraries, - group_types => [ - { - categorytype => 'searchdomain', - categories => [ - Koha::LibraryCategories->search( - { categorytype => 'searchdomain' } - ) - ], - }, - { - categorytype => 'properties', - categories => [ - Koha::LibraryCategories->search( - { categorytype => 'properties' } - ) - ], - }, - ] - ); - #Find all patron categories in the database and hand them to the template to display in the patron category dropdown box my $categories = Koha::Patron::Categories->search(); $template->param( 'categories' => $categories, ); @@ -465,31 +440,6 @@ elsif ( $step && $step == 5 ) { $itemtypes = Koha::ItemTypes->search(); $template->param( itemtypes => $itemtypes, ); - #Find all the exisiting libraries to display in a dropdown box in the template - my $libraries = - Koha::Libraries->search( {}, { order_by => ['branchcode'] }, ); - $template->param( - libraries => $libraries, - group_types => [ - { - categorytype => 'searchdomain', - categories => [ - Koha::LibraryCategories->search( - { categorytype => 'searchdomain' } - ) - ], - }, - { - categorytype => 'properties', - categories => [ - Koha::LibraryCategories->search( - { categorytype => 'properties' } - ) - ], - }, - ] - ); - my $input = CGI->new; my $dbh = C4::Context->dbh; -- 2.1.4