Add validation warning for generic names

(closes #5590)
This commit is contained in:
Bryan Housel
2019-01-08 02:15:28 -05:00
parent 528cbb29e1
commit 5f20218f1f
13 changed files with 80 additions and 20 deletions
+4 -1
View File
@@ -25,7 +25,10 @@ export function uiCommitWarnings(context) {
}, {});
_forEach(validations, function(instances, type) {
instances = _uniqBy(instances, function(val) { return val.id + '_' + val.message.replace(/\s+/g,''); });
instances = _uniqBy(instances, function(val) {
return val.entity || (val.id + '_' + val.message.replace(/\s+/g,''));
});
var section = type + '-section';
var instanceItem = type + '-item';