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 <alexbuckley@catalyst.net.nz> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
parent
2e78327829
commit
02b3816656
|
|
@ -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 ) =
|
||||
|
|
|
|||
Loading…
Reference in New Issue