Skip to content

Instantly share code, notes, and snippets.

@indigo423
Created February 20, 2016 19:45
Show Gist options
  • Save indigo423/bb7fe3fcfa912ad91623 to your computer and use it in GitHub Desktop.
Save indigo423/bb7fe3fcfa912ad91623 to your computer and use it in GitHub Desktop.
OpenNMS patch for NMS-8153
--- 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