[open-ils-commits] [GIT] Evergreen ILS branch master updated. 9c9e06daf12fd40a0550113e8f56f2a9e7629745

Evergreen Git git at git.evergreen-ils.org
Sat Aug 3 12:15:37 EDT 2019


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, master has been updated
       via  9c9e06daf12fd40a0550113e8f56f2a9e7629745 (commit)
       via  347f2d360f072614306c8ac63b47d32a0e1e01ed (commit)
      from  e11d48dd14bd2ca57b5ca5920e82816ba47b284e (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 9c9e06daf12fd40a0550113e8f56f2a9e7629745
Author: Bill Erickson <berickxx at gmail.com>
Date:   Fri Mar 8 12:09:07 2019 -0500

    LP1803584 Avoid JS errors when clearing copy templates
    
    Minor fix to sanity check multi-copy data in the copy template editor
    after clearing the template contents.  This cleans up some ugly console
    errors.
    
    Signed-off-by: Bill Erickson <berickxx at gmail.com>
    Signed-off-by: Galen Charlton <gmc at 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 5f8770330a..6813258c47 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
@@ -1202,7 +1202,8 @@ function($scope , $q , $window , $routeParams , $location , $timeout , egCore ,
         var keys = Object.keys($scope.working.MultiMap);
         // for-loop for shortcut exit
         for (var i = 0; i < keys.length; i++) {
-            if ($scope.working.MultiMap[keys[i]].length > 1) {
+            if ($scope.working.MultiMap[keys[i]] &&
+                $scope.working.MultiMap[keys[i]].length > 1) {
                 return true;
             }
         }

commit 347f2d360f072614306c8ac63b47d32a0e1e01ed
Author: Jason Boyer <jboyer at library.in.gov>
Date:   Thu Nov 15 13:45:44 2018 -0500

    LP1803584: Fix Clear button in template editor
    
    There are multiple controllers in staff/cat/volcopy/ and
    2 of them have a clearWorking() function. The template
    editor controller is referencing $scope.MultiMap[] which
    will never exist in the template editor, while the actual
    item editor controller clearWorking() does not reference
    $scope.MultiMap[], meaning that clearing multiple items
    at once would not work as expected. This branch clears
    up this confusion.
    
    Signed-off-by: Jason Boyer <jboyer at library.in.gov>
    Signed-off-by: Beth Willis <willis at noblenet.org>
    Signed-off-by: Bill Erickson <berickxx at gmail.com>
    Signed-off-by: Galen Charlton <gmc at 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 79dbf81e61..5f8770330a 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
@@ -2567,8 +2567,6 @@ function($scope , $q , $window , $routeParams , $location , $timeout , egCore ,
 
                 $scope.clearWorking = function () {
                     angular.forEach($scope.working, function (v,k,o) {
-                        if (k != 'MultiMap') $scope.working.MultiMap[k] = [];
-                        $scope.working.MultiMap[k] = [];
                         if (!angular.isObject(v)) {
                             if (typeof v != 'undefined')
                                 $scope.working[k] = undefined;

-----------------------------------------------------------------------

Summary of changes:
 Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list