From: Bill Erickson <berickxx@gmail.com>
Date: Thu, 6 Dec 2018 17:18:06 +0000 (-0500)
Subject: LP#1806968 Teach Vandelay to pass correct auth tracker type
X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=8de5d650be848ab5b36c24ddc6311bf281cca086;p=contrib%2FConifer.git

LP#1806968 Teach Vandelay to pass correct auth tracker type

Pass the correct value ('authority') when creating a Vandelay session
tracker entry for authority records.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Jason Boyer <jboyer@library.in.gov>
---

diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Vandelay.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Vandelay.pm
index 0647b330d5..9f11bd84da 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Vandelay.pm
+++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Vandelay.pm
@@ -909,6 +909,7 @@ sub queued_records_with_matches {
 sub create_session_tracker {
     my ($user_id, $ws_id, $key, $name, $type, $queue_id, $action, $total_acts) = @_;
     my $e = new_editor(xact => 1);
+    $type = 'authority' if $type =~ /auth/;
 
     if ($key) {
         # if other trackers exist for this key, adopt the name