From: Mike Rylander Date: Tue, 13 Oct 2015 15:41:12 +0000 (-0400) Subject: webstaff: make sure copy_notes() contains an array before pushing to it X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=7f487dc05370d353f414caf15f10f6694423a87f;p=working%2FEvergreen.git webstaff: make sure copy_notes() contains an array before pushing to it Signed-off-by: Mike Rylander Signed-off-by: Galen Charlton --- 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 aa9d2cd9c5..012cf1f380 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 @@ -1415,6 +1415,7 @@ function($scope , $q , $window , $routeParams , $location , $timeout , egCore , if (note.initials) note.value += ' [' + note.initials + ']'; angular.forEach(copy_list, function (cp) { + if (!angular.isArray(cp.notes())) cp.notes([]); var n = new egCore.idl.acpn(); n.isnew(1); n.creator(note.creator);