Commit d4cd0c2f authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

[entity related rql] 'is' relation target constant should have 'etype' type, not String

parent 059914a691a9
......@@ -894,7 +894,7 @@ class Entity(AppObject):
targettypes = rschema.subjects(self.e_schema)
else:
select.add_constant_restriction(mainvar, 'is', targettypes,
'String')
'etype')
gcard = greater_card(rschema, targettypes, (self.e_schema,), 1)
etypecls = vreg['etypes'].etype_class(targettypes[0])
if len(targettypes) > 1:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment