[autoform] fix restoration of pending generic relation: inconsistent id was generated (eg different from the one generated by javascript
--- a/web/views/autoform.py Wed Dec 01 17:08:42 2010 +0100
+++ b/web/views/autoform.py Thu Dec 02 10:08:28 2010 +0100
@@ -550,6 +550,7 @@
pending_inserts = set(get_pending_inserts(form._cw, form.edited_entity.eid))
for pendingid in pending_inserts:
eidfrom, rtype, eidto = pendingid.split(':')
+ pendingid = 'id' + pendingid
if typed_eid(eidfrom) == entity.eid: # subject
label = display_name(form._cw, rtype, 'subject',
entity.__regid__)