LP#1796978 Realign working copy refresh with proper condition
authorDan Wells <dbw2@calvin.edu>
Wed, 10 Oct 2018 20:07:24 +0000 (16:07 -0400)
committerCesar Velez <cesardv@protonmail.ch>
Tue, 16 Oct 2018 22:18:03 +0000 (18:18 -0400)
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>
Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js

index ae42674..a289134 100644 (file)
@@ -1843,9 +1843,9 @@ function($scope , $q , $window , $routeParams , $location , $timeout , egCore ,
                             });
                         });
                     }
+                } else {
+                    $scope.workingGridDataProvider.refresh();
                 }
-            } else {
-                $scope.workingGridDataProvider.refresh();
             }
         });