# HG changeset patch # User Sylvain Thénault # Date 1253872591 -7200 # Node ID 9a868f462fa45d0fe7b712b914698431c077ed76 # Parent d614369df4b35ceea63e56053dda2e1febf7b1cd [i18n] properly give context diff -r d614369df4b3 -r 9a868f462fa4 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)