From 02b3816656c779e803b7e91bdeb1aedbfdb7ac67 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 Signed-off-by: Jonathan Druart Signed-off-by: Kyle M Hall --- installer/onboarding.pl | 50 ----------------------------------------- 1 file changed, 50 deletions(-) diff --git a/installer/onboarding.pl b/installer/onboarding.pl index 943def71ba..d24f17c672 100755 --- a/installer/onboarding.pl +++ b/installer/onboarding.pl @@ -218,31 +218,6 @@ elsif ( $step && $step == 3 ) { my $currentpatrons = values %currentpatrons; $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, ); @@ -456,31 +431,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 ( $template, $loggedinuser, $cookie ) = -- 2.39.5