From 8e11d51b6eef3614c6eb77b11217b57b247d8441 Mon Sep 17 00:00:00 2001 From: Josef Moravec Date: Wed, 8 Feb 2017 20:45:51 +0000 Subject: [PATCH] Bug 17913: [16.11.x] followup Signed-off-by: Josef Moravec --- C4/AuthoritiesMarc.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/C4/AuthoritiesMarc.pm b/C4/AuthoritiesMarc.pm index 2356ae977e..34d498fe0a 100644 --- a/C4/AuthoritiesMarc.pm +++ b/C4/AuthoritiesMarc.pm @@ -1459,10 +1459,10 @@ sub merge { # Get All candidate Tags for the change # (This will reduce the search scope in marc records). my $sql = "SELECT DISTINCT tagfield FROM marc_subfield_structure WHERE authtypecode=?"; - my $tags_using_authtype = $dbh->selectcol_arrayref( $sql, undef, ( $authtypecodefrom )); + my $tags_using_authtype = $dbh->selectcol_arrayref( $sql, undef, ( $authtypefrom->authtypecode )); my $tags_new; - if ($authtypecodeto ne $authtypecodefrom){ - $tags_new = $dbh->selectcol_arrayref( $sql, undef, ( $authtypecodeto )); + if ($authtypeto->authtypecode ne $authtypefrom->authtypecode){ + $tags_new = $dbh->selectcol_arrayref( $sql, undef, ( $authtypeto->authtypecode )); } # BulkEdit marc records # May be used as a template for a bulkedit field -- 2.39.5