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

(-)a/koha-tmpl/intranet-tmpl/prog/en/js/additem.js (-2 / +4 lines)
Lines 182-189 function check_additem(unique_item_fields) { Link Here
182
    // Check if a value is duplicated in form
182
    // Check if a value is duplicated in form
183
    for ( field in array_fields ) {
183
    for ( field in array_fields ) {
184
        var fieldname = array_fields[field];
184
        var fieldname = array_fields[field];
185
        if (fieldname == '') {
186
            continue;
187
        }
185
        var values = new Array();
188
        var values = new Array();
186
        $("[name='kohafield'][value=items."+array_fields[field]+"]").each(function(){
189
        $("[name='kohafield'][value=items."+ fieldname +"]").each(function(){
187
            var input = $(this).prevAll("input[name='field_value']")[0];
190
            var input = $(this).prevAll("input[name='field_value']")[0];
188
            if($(input).val()) {
191
            if($(input).val()) {
189
                values.push($(input).val());
192
                values.push($(input).val());
190
- 

Return to bug 7178