--- a/cubicweb/server/rqlannotation.py Tue Oct 09 16:24:12 2018 +0200
+++ b/cubicweb/server/rqlannotation.py Mon Oct 29 10:04:31 2018 +0100
@@ -100,9 +100,9 @@
ostinfo = rhs.children[0].variable.stinfo
else:
ostinfo = lhs.variable.stinfo
- if not (ostinfo.get('optcomparisons') or
- any(orel for orel in ostinfo['relations']
- if orel.optional and orel is not rel)):
+ if not (ostinfo.get('optcomparisons')
+ or any(orel for orel in ostinfo['relations']
+ if orel.optional and orel is not rel)):
break
if rschema.final or (onlhs and rschema.inlined):
if rschema.type != 'has_text':