[core] GroupAttribute: check "enabled" property of child params in uid computation

Disabled params should not be part of the UID computation, even for child attributes of an enabled GroupAttribute.
This commit is contained in:
Fabien Castan 2020-08-11 11:50:59 +02:00 committed by GitHub
parent 9a0965c5db
commit 588c2e59b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -434,7 +434,7 @@ class GroupAttribute(Attribute):
def uid(self, uidIndex):
uids = []
for k, v in self._value.items():
if uidIndex in v.desc.uid:
if v.enabled and uidIndex in v.desc.uid:
uids.append(v.uid(uidIndex))
return hashValue(uids)