web/data/cubicweb.edition.js
branchtls-sprint
changeset 1713 d817f23439ba
parent 1419 7ff24154351d
child 1759 61d026ced19f
--- a/web/data/cubicweb.edition.js	Thu May 07 12:46:35 2009 +0200
+++ b/web/data/cubicweb.edition.js	Thu May 07 16:00:58 2009 +0200
@@ -166,12 +166,14 @@
     if (comboId) {
 	// re-insert option in combobox if it was taken from there
 	var selectNode = getNode(comboId);
+        // XXX what on object relation
 	if (selectNode){
 	   var options = selectNode.options;
 	   var node_id = elementId.substring(0, elementId.indexOf(':'));
 	   options[options.length] = OPTION({'id' : elementId, 'value' : node_id}, entityView);
 	}
     }
+    elementId = elementId.substring(2, elementId.length);
     remoteExec('remove_pending_insert', elementId.split(':'));
 }