[views/uicfg] obvious bug detected by sonar 3.26
authorNicolas Chauvat <nicolas.chauvat@logilab.fr>
Wed, 06 Jun 2018 18:37:16 +0200
branch3.26
changeset 12423 807fd315ac98
parent 12422 ca3fe2f275eb
child 12424 f0a5c2fa2b5d
[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))