LP1796988: Fix Saving Last Copy Template
authorJason Boyer <jboyer@library.in.gov>
Fri, 26 Oct 2018 13:16:14 +0000 (09:16 -0400)
committerJason Stephenson <jason@sigio.com>
Fri, 2 Nov 2018 12:28:06 +0000 (08:28 -0400)
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>

Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js

index 90f9dcf..0928b7c 100644 (file)
@@ -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);
         }