From: Dan Wells <dbw2@calvin.edu>
Date: Wed, 10 Oct 2018 20:07:24 +0000 (-0400)
Subject: LP#1796978 Realign working copy refresh with proper condition
X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=f64ec2e462827b8c7aac0008ebe11880bb389964;p=evergreen%2Fequinox.git

LP#1796978 Realign working copy refresh with proper condition

The "working copy" grid needs to update whenever the copy data above
updates.  I *believe* this aligns the refresh with its intended
condition.

This appears to have come about via bug #1732761, so retesting of
that fix may be in order.

Signed-off-by: Dan Wells <dbw2@calvin.edu>
Signed-off-by: Jason Stephenson <jason@sigio.com>
Signed-off-by: Cesar Velez <cesar.velez@equinoxinitiative.org>
---

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 ae4267495e..a289134ad5 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
@@ -1843,9 +1843,9 @@ function($scope , $q , $window , $routeParams , $location , $timeout , egCore ,
                             });
                         });
                     }
+                } else {
+                    $scope.workingGridDataProvider.refresh();
                 }
-            } else {
-                $scope.workingGridDataProvider.refresh();
             }
         });