undo part of #6911
authorAurelien Campeas <aurelien.campeas@logilab.fr>
Tue, 01 Feb 2011 11:03:08 +0100
changeset 6932 1599ad09624f
parent 6931 0af44a38fe41
child 6941 9ed02daa7dbb
undo part of #6911
web/views/reledit.py
--- a/web/views/reledit.py	Tue Feb 01 11:52:10 2011 +0100
+++ b/web/views/reledit.py	Tue Feb 01 11:03:08 2011 +0100
@@ -81,7 +81,7 @@
         self._cw.add_js(('cubicweb.reledit.js', 'cubicweb.edition.js', 'cubicweb.ajax.js'))
         entity = self.cw_rset.get_entity(row, col)
         rschema = self._cw.vreg.schema[rtype]
-        self._rules = rctrl.etype_get(entity.e_schema, rschema, role, '*')
+        self._rules = rctrl.etype_get(entity.e_schema.type, rschema.type, role, '*')
         if rvid is not None or default_value is not None:
             warn('[3.9] specifying rvid/default_value on select is deprecated, '
                  'reledit_ctrl rtag to control this' % self, DeprecationWarning)