lp1713164 copy editor saving without call number user/mrisher/lp1713164-saving-without-call-num
authorMike Risher <mrisher@catalyte.io>
Thu, 16 Jan 2020 21:34:08 +0000 (21:34 +0000)
committerMike Risher <mrisher@catalyte.io>
Thu, 16 Jan 2020 21:34:08 +0000 (21:34 +0000)
In the volume / copy editor if the user adds a copy without entering a
call number they are still able to save. There is no indication that
the call number is missing. The save doesn't go through in this case.
The task is to fix this bug.

Signed-off-by: Mike Risher <mrisher@catalyte.io>
Changes to be committed:
modified:   Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js

Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js

index 20b819e..437a25d 100644 (file)
@@ -759,7 +759,7 @@ function(egCore , $q) {
 
                 $scope.$watch('callNumber.label()', function (v) {
                     $scope.label = v;
-                    if ($scope.label == '') {
+                    if ($scope.label == '' || $scope.label == undefined) {
                         $scope.callNumber.empty_label = $scope.empty_label = true;
                     } else {
                         $scope.callNumber.empty_label = $scope.empty_label = false;