From cbab50077c1dc62b544c4e4b2fc83fdbdcb32173 Mon Sep 17 00:00:00 2001
From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Date: Tue, 24 Jan 2017 11:18:40 +0100
Subject: [PATCH] Bug 17980: Corresponding fix in DelAuthority
Content-Type: text/plain; charset=utf-8

The call to ModZebra here does not need more than three parameters.
Same for Zebra and Elastic Search.

Note: On omnibus bug 17908 a few more fixes are coming on this subject of
deleting authorities.

Test plan:
[1] Delete an authority.
[2] Search for it in the Authority module.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
---
 C4/AuthoritiesMarc.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/C4/AuthoritiesMarc.pm b/C4/AuthoritiesMarc.pm
index 12acee7..ea9fa27 100644
--- a/C4/AuthoritiesMarc.pm
+++ b/C4/AuthoritiesMarc.pm
@@ -709,7 +709,7 @@ sub DelAuthority {
     my $dbh=C4::Context->dbh;
 
     logaction( "AUTHORITIES", "DELETE", $authid, "authority" ) if C4::Context->preference("AuthoritiesLog");
-    ModZebra($authid,"recordDelete","authorityserver",GetAuthority($authid),undef);
+    ModZebra( $authid, "recordDelete", "authorityserver" );
     my $sth = $dbh->prepare("DELETE FROM auth_header WHERE authid=?");
     $sth->execute($authid);
 }
-- 
2.1.4