webstaff: copy template fix
[Evergreen.git] / Open-ILS / web / js / ui / default / staff / cat / volcopy / app.js
index 760a56b..d90c50e 100644 (file)
@@ -1602,6 +1602,8 @@ function($scope , $q , $window , $routeParams , $location , $timeout , egCore ,
                             $scope.working[k] = angular.copy(v);
                         } else {
                             angular.forEach(v, function (sv,sk) {
+                                if (!(k in $scope.working))
+                                    $scope.working[k] = {};
                                 $scope.working[k][sk] = angular.copy(sv);
                             });
                         }