Bugzilla – Attachment 69291 Details for
Bug 19683
Export.pl does not populate the Authority Types dropdown correctly
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 19683 - Unbless authority_types search results
Bug-19683---Unbless-authoritytypes-search-results.patch (text/plain), 1.94 KB, created by
David Bourgault
on 2017-11-22 19:36:17 UTC
(
hide
)
Description:
Bug 19683 - Unbless authority_types search results
Filename:
MIME Type:
Creator:
David Bourgault
Created:
2017-11-22 19:36:17 UTC
Size:
1.94 KB
patch
obsolete
>From 3a219d509fcfa4e1a660c7e4b30bfa64542aad15 Mon Sep 17 00:00:00 2001 >From: David Bourgault <david.bourgault@inlibro.com> >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 >--- > 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() { > <select name="authtype" id="authtype"> > <option value="">-- All --</option> > [% FOREACH authority_type IN authority_types %] >- <option value="[% authtypeloo.value %]">[% authtypeloo.description %]</option> >+ <option value="[% authority_type.authtypecode %]">[% authority_type.authtypetext %]</option> > [% END %] > </select> > </li> >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.7.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 19683
:
69291
|
69300
|
69329