web/views/editviews.py
changeset 3293 69c0ba095536
parent 3185 bd0126d17e83
parent 3243 54e07f97c17f
child 3377 dd9d292b6a6d
--- a/web/views/editviews.py	Tue Sep 15 15:01:41 2009 +0200
+++ b/web/views/editviews.py	Thu Sep 17 15:16:53 2009 +0200
@@ -50,10 +50,10 @@
         # them. Use fetch_order and not fetch_unrelated_order as sort method
         # since the latter is mainly there to select relevant items in the combo
         # box, it doesn't give interesting result in this context
-        rql = entity.unrelated_rql(rtype, etype, role,
+        rql, args = entity.unrelated_rql(rtype, etype, role,
                                    ordermethod='fetch_order',
                                    vocabconstraints=False)
-        rset = self.req.execute(rql, {'x' : entity.eid}, 'x')
+        rset = self.req.execute(rql, args, tuple(args))
         return rset, 'list', "search-associate-content", True