[i18n] properly give context
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 25 Sep 2009 11:56:31 +0200
changeset 3482 9a868f462fa4
parent 3481 d614369df4b3
child 3483 feedfe5d4932
[i18n] properly give context
web/views/autoform.py
--- a/web/views/autoform.py	Fri Sep 25 11:55:39 2009 +0200
+++ b/web/views/autoform.py	Fri Sep 25 11:56:31 2009 +0200
@@ -229,10 +229,12 @@
         for pendingid in pending_inserts:
             eidfrom, rtype, eidto = pendingid.split(':')
             if typed_eid(eidfrom) == eid: # subject
-                label = display_name(self._cw, rtype, 'subject')
+                label = display_name(self._cw, rtype, 'subject',
+                                     self.edited_entity.__regid__)
                 reid = eidto
             else:
-                label = display_name(self._cw, rtype, 'object')
+                label = display_name(self._cw, rtype, 'object',
+                                     self.edited_entity.__regid__)
                 reid = eidfrom
             jscall = "javascript: cancelPendingInsert('%s', '%s', null, %s);" \
                      % (pendingid, cell, eid)