[open-ils-commits] [GIT] Evergreen ILS branch rel_3_1 updated. ee5fb8e1f2c53363fec3cee8de8026d8fce292ac
Evergreen Git
git at git.evergreen-ils.org
Mon Jun 11 14:17:03 EDT 2018
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, rel_3_1 has been updated
via ee5fb8e1f2c53363fec3cee8de8026d8fce292ac (commit)
from 0aaa1a0dcd5148238e51a87c4b38c49837556de3 (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 ee5fb8e1f2c53363fec3cee8de8026d8fce292ac
Author: Dan Pearl <dpearl at cwmars.org>
Date: Thu Jun 7 14:20:49 2018 -0400
LP1739271 - Fix Item Edit when Part Present
Cannot edit item or call number after mono part
assigned. This was indeed a timing error where parts were referenced before
they were completely assigned to the structure in which they were to reside.
I have restructured the code to ensure the parts are available.
Signed-off-by: Dan Pearl <dpearl at cwmars.org>
Signed-off-by: Jason Boyer <jboyer at library.in.gov>
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 b722a1c..a744a0c 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
@@ -536,25 +536,26 @@ function(egCore , $q) {
}
$scope.copy.ischanged(1);
}
- $scope.$watch('part', $scope.updatePart);
-
- $scope.barcode = $scope.copy.barcode();
- $scope.copy_number = $scope.copy.copy_number();
-
- if ($scope.copy.parts()) {
- $scope.part = $scope.copy.parts()[0];
- if ($scope.part) $scope.part = $scope.part.label();
- };
$scope.parts = [];
$scope.part_list = [];
- itemSvc.get_parts($scope.callNumber.record()).then(function(list){
+ itemSvc.get_parts($scope.callNumber.record())
+ .then(function(list){
$scope.part_list = list;
angular.forEach(list, function(p){ $scope.parts.push(p.label()) });
$scope.parts = angular.copy($scope.parts);
+
+ $scope.$watch('part', $scope.updatePart);
+ if ($scope.copy.parts()) {
+ var the_part = $scope.copy.parts()[0];
+ if (the_part) $scope.part = the_part.label();
+ };
});
+ $scope.barcode = $scope.copy.barcode();
+ $scope.copy_number = $scope.copy.copy_number();
+
}
]
-----------------------------------------------------------------------
Summary of changes:
.../web/js/ui/default/staff/cat/volcopy/app.js | 21 ++++++++++---------
1 files changed, 11 insertions(+), 10 deletions(-)
hooks/post-receive
--
Evergreen ILS
More information about the open-ils-commits
mailing list