Bug 36379: Fix auth_finder.pl to not expect the op cud-do_search
The authority finder just does a GET for a list of search results, it doesn't create or update or delete, so the template that thinks the op is do_search is correct. Test plan: 1. Cataloging - New record 2. In the 1 tab click the Tag editor icon at the end of 100 subfield a 3. In the popup, click Search, and nothing happens, no results are shown. 4. Apply patch, reset_all 5. Repeat steps 1-3, see that you get results. Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Julian Maurice <julian.maurice@biblibre.com> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
parent
a64383de16
commit
d7702d6fad
|
|
@ -41,7 +41,7 @@ my $relationship = $query->param('relationship') || '';
|
|||
|
||||
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
|
||||
{
|
||||
template_name => ( $op eq 'cud-do_search' )
|
||||
template_name => ( $op eq 'do_search' )
|
||||
? 'authorities/searchresultlist-auth.tt'
|
||||
: 'authorities/auth_finder.tt',
|
||||
query => $query,
|
||||
|
|
@ -53,7 +53,7 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
|
|||
my $authority_types = Koha::Authority::Types->search( {}, { order_by => ['authtypetext'] } );
|
||||
|
||||
# If search form posted
|
||||
if ( $op eq "cud-do_search" ) {
|
||||
if ( $op eq "do_search" ) {
|
||||
my @marclist = $query->multi_param('marclist');
|
||||
my @and_or = $query->multi_param('and_or');
|
||||
my @excluding = $query->multi_param('excluding');
|
||||
|
|
|
|||
Loading…
Reference in New Issue