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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt (-7 / +5 lines)
Lines 9-21 Link Here
9
    function Check(form) {
9
    function Check(form) {
10
        [% IF (AcqCreateItemReceiving) %]
10
        [% IF (AcqCreateItemReceiving) %]
11
            var total_errors=0;
11
            var total_errors=0;
12
            $("input[name='mandatory'],select[name='mandatory']").each(function(i){
12
            $(f).find(".subfield_line input[name='mandatory'][value='1']").each(function(i){
13
                if($(this).val() == 1){
13
                var mandatory_field = $(this).siblings("[name='field_value']");
14
                    var mandatory_field = $("input[name='field_value'],select[name='field_value']").eq(i);
14
                if (mandatory_field.val() == '') {
15
                    if(mandatory_field.val() == ''){
15
                    mandatory_field.addClass("missing");
16
                        mandatory_field.addClass("missing");
16
                    total_errors++;
17
                        total_errors++;
18
                    }
19
                }
17
                }
20
            });
18
            });
21
19
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt (-8 / +5 lines)
Lines 41-53 function active(numlayer) Link Here
41
}
41
}
42
function Check(f) {
42
function Check(f) {
43
    var total_errors=0;
43
    var total_errors=0;
44
    $("input[name='mandatory'],select[name='mandatory']").each(function(i){
44
    $(f).find(".subfield_line input[name='mandatory'][value='1']").each(function(i){
45
        if($(this).val() == 1){
45
        var mandatory_field = $(this).siblings("[name='field_value']");
46
            var mandatory_field = $("input[name='field_value'],select[name='field_value']").eq(i);
46
        if (mandatory_field.val() == '') {
47
            if(mandatory_field.val() == ''){
47
            mandatory_field.addClass("missing");
48
                mandatory_field.addClass("missing");
48
            total_errors++;
49
                total_errors++;
50
            }
51
        }
49
        }
52
    });
50
    });
53
51
54
- 

Return to bug 10543