Bug 17913: [16.11.x] followup
authorJosef Moravec <josef.moravec@gmail.com>
Wed, 8 Feb 2017 20:45:51 +0000 (20:45 +0000)
committerKatrin Fischer <katrin.fischer.83@web.de>
Tue, 14 Feb 2017 21:26:18 +0000 (22:26 +0100)
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>

C4/AuthoritiesMarc.pm

index 2356ae9..34d498f 100644 (file)
@@ -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