[views/uicfg] obvious bug detected by sonar
authorNicolas Chauvat <nicolas.chauvat@logilab.fr>
Wed, 06 Jun 2018 18:37:16 +0200
changeset 12313 aa15dd521d04
parent 12312 a7c4b13a2d60
child 12314 f90e0d5c9a64
[views/uicfg] obvious bug detected by sonar
cubicweb/web/views/uicfg.py
--- a/cubicweb/web/views/uicfg.py	Wed Jun 06 14:20:16 2018 +0200
+++ b/cubicweb/web/views/uicfg.py	Wed Jun 06 18:37:16 2018 +0200
@@ -233,7 +233,7 @@
             for key in list(self._tagdefs):
                 stype, rtype, otype, role = key
                 rschema = schema.rschema(rtype)
-                if stype == '*' and stype == '*':
+                if stype == '*' and otype == '*':
                     concrete_rdefs = rschema.rdefs.keys()
                 elif stype == '*':
                     concrete_rdefs = zip(rschema.subjects(otype), repeat(otype))