From 7bedb3063c0583662898f96027d804e35e4090d6 Mon Sep 17 00:00:00 2001 From: David Bourgault Date: Wed, 22 Nov 2017 14:35:27 -0500 Subject: [PATCH] Bug 19683 - Unbless authority_types search results Fixes the bug by unblessing the authority types search results, and correcting the variable names in the template. To test: 0) Tools > Export > Export authority records 1) Authority Types dropdown is not empty Signed-off-by: Claire Gravely --- koha-tmpl/intranet-tmpl/prog/en/modules/tools/export.tt | 2 +- tools/export.pl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/export.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/export.tt index fc9892e..19224f4 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/export.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/export.tt @@ -207,7 +207,7 @@ $(document).ready(function() { diff --git a/tools/export.pl b/tools/export.pl index 72b18c4..edbf98c 100755 --- a/tools/export.pl +++ b/tools/export.pl @@ -268,7 +268,7 @@ else { my $itemtypes = Koha::ItemTypes->search_with_localization; - my $authority_types = Koha::Authority::Types->search( {}, { order_by => ['authtypecode'] } ); + my $authority_types = Koha::Authority::Types->search( {}, { order_by => ['authtypecode'] } )->unblessed; my $libraries = Koha::Libraries->search_filtered({}, { order_by => ['branchname'] })->unblessed; for my $library ( @$libraries ) { -- 2.1.4