From: Jason Boyer <jboyer@library.in.gov>
Date: Fri, 26 Oct 2018 13:16:14 +0000 (-0400)
Subject: LP1796988: Fix Saving Last Copy Template
X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=f709f27419471078ddf7f17fd4c136f64a5c8707;p=evergreen%2Fjoelewis.git

LP1796988: Fix Saving Last Copy Template

A line that belongs within a forEach loop escaped
its bounds and caused a reference error that prevented
the applyTemplate function from saving the last used
template. This branch ushers this line back to its
pen where it can trouble us no more.

Signed-off-by: Jason Boyer <jboyer@library.in.gov>
Signed-off-by: Janet Schrader <jschrader@cwmars.org>
Signed-off-by: Jason Stephenson <jason@sigio.com>
---

diff --git a/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js b/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js
index 90f9dcf260..0928b7cadb 100644
--- a/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js
+++ b/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js
@@ -1327,8 +1327,8 @@ function($scope , $q , $window , $routeParams , $location , $timeout , egCore ,
                         }
                     });
                 }
+                delete $scope.working.MultiMap[k];
             });
-            delete $scope.working.MultiMap[k];
             egCore.hatch.setItem('cat.copy.last_template', n);
         }