LP#1745462: avoid trying to validate empty fields
[Evergreen.git] / Open-ILS / web / js / ui / default / staff / cat / services / marcedit.js
index 1085e63..96a15dd 100644 (file)
@@ -1327,6 +1327,7 @@ angular.module('egMarcMod', ['egCoreMod', 'ui.bootstrap'])
                             return;
                         }
                         var auth_match = $scope.controlSet.bibToAuthorities(f);
+                        if (auth_match.length == 0) return;
                         chain = chain.then(function() {
                             var promise = egCore.net.request(
                                 'open-ils.search',