Created
February 20, 2016 19:45
-
-
Save indigo423/bb7fe3fcfa912ad91623 to your computer and use it in GitHub Desktop.
OpenNMS patch for NMS-8153
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- requisitionConstraints.js 2016-02-19 00:58:16.000000000 +0900 | |
+++ requisitionConstraints.js 2016-02-21 04:34:09.512008000 +0900 | |
@@ -86,7 +86,7 @@ | |
require: 'ngModel', | |
link: function(scope, element, attrs, ctrl) { | |
ctrl.$parsers.unshift(function(foreignId) { | |
- var found = scope.$parent.foreignIdBlackList.indexOf(foreignId) != -1; | |
+ var found = scope.foreignIdBlackList.indexOf(foreignId) != -1; | |
if (found) { | |
ctrl.$setValidity('unique', false); | |
return undefined; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment