Replace child_of target only if it is not a related field
issue8609 review285911002
This commit is contained in:
@@ -140,7 +140,7 @@ def inverse_leaf(domain):
|
||||
if domain in ('AND', 'OR'):
|
||||
return domain
|
||||
elif is_leaf(domain):
|
||||
if 'child_of' in domain[1]:
|
||||
if 'child_of' in domain[1] and '.' not in domain[0]:
|
||||
if len(domain) == 3:
|
||||
return domain
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user