View | Details | Raw Unified | Return to bug 23202
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/js/additem.js (-2 / +1 lines)
Lines 192-198 function cloneItemBlock(index, unique_item_fields, callback) { Link Here
192
            $(original).find("input[name='field_value']").each(function(){
192
            $(original).find("input[name='field_value']").each(function(){
193
                var kohafield = $(this).siblings("input[name='kohafield']").val();
193
                var kohafield = $(this).siblings("input[name='kohafield']").val();
194
                if($(this).val() && $.inArray(kohafield,dont_copy_fields) == -1) {
194
                if($(this).val() && $.inArray(kohafield,dont_copy_fields) == -1) {
195
                    $(this).parent("div").attr("id").match(/^(subfield.)/);
195
                    $(this).closest("li div").attr("id").match(/^(subfield.)/);
196
                    var id = RegExp.$1;
196
                    var id = RegExp.$1;
197
                    var value = $(this).val();
197
                    var value = $(this).val();
198
                    $(clone).find("div[id^='"+id+"'] input[name='field_value']").val(value);
198
                    $(clone).find("div[id^='"+id+"'] input[name='field_value']").val(value);
199
- 

Return to bug 23202