baseUnitFilter accepts all uniques that exist on units - see #6430

This commit is contained in:
Yair Morgenstern 2022-04-19 14:17:19 +03:00
parent 16ea8fe8f0
commit bc16a69bd2

View File

@ -72,6 +72,7 @@ enum class UniqueParameterType(
override fun getErrorSeverity(parameterText: String, ruleset: Ruleset):
UniqueType.UniqueComplianceErrorSeverity? {
if (UnitName.getErrorSeverity(parameterText, ruleset) == null) return null
if (ruleset.units.values.any { it.uniques.contains(parameterText) }) return null
return UnitTypeFilter.getErrorSeverity(parameterText, ruleset)
}
},