diff --git a/api/js/etemplate/et2_widget_historylog.js b/api/js/etemplate/et2_widget_historylog.js index be5f286d33..3ccf29fb75 100644 --- a/api/js/etemplate/et2_widget_historylog.js +++ b/api/js/etemplate/et2_widget_historylog.js @@ -364,6 +364,7 @@ var et2_historylog = (function(){ "use strict"; return et2_valueWidget.extend([e { delete attrs['select_options']; } + attrs.id = i; var child = et2_createWidget(typeof field[i] == 'string' ? field[i] : 'select', attrs, widget); child.transformAttributes(attrs); } @@ -585,7 +586,8 @@ var et2_historylog = (function(){ "use strict"; return et2_valueWidget.extend([e var box = jQuery(widget.getDOMNode()).clone(); for(var j = 0; j < widget._children.length; j++) { - widget._children[j].setDetachedAttributes(nodes[j], {value:value[j]}); + var id = widget._children[j].id; + widget._children[j].setDetachedAttributes(nodes[j], {value:value[id]}); box.append(nodes[j]); } nodes = box;