Ticket #600 (closed バグ指摘: 修正済)

Opened 11 years ago

Last modified 10 years ago

[管理画面]受注検索結果が1件の場合、帳票の「全て選択」「全て解除」が効かない

Reported by: kishida Owned by: nanasess
Priority: Milestone: EC-CUBE2.11.0
Component: 管理画面 Version: 2.4.2
Keywords: 受注検索、fnBoxChecked Cc:
修正済み:

Description (last modified by nanasess) (diff)

検索結果が1件の場合、下記のmaxがundefinedになっている為

var fm = document.form1;
var max = fm["pdf_order_id[]"].length;
-- 修正前
function fnBoxChecked(check){
    var count;
    var fm = document.form1;
    var max = fm["pdf_order_id[]"].length;
    for(count=0; count<max; count++){
        fm["pdf_order_id[]"][count].checked = check;
    }
}
-- 修正後
function fnBoxChecked(check){
    var count;
    var fm = document.form1;
    var max = fm["pdf_order_id[]"].length;

    if(max) {
        for(count=0; count<max; count++){
            fm["pdf_order_id[]"][count].checked = check;
        }
    } else {
        if( check == true ){
            fm["pdf_order_id[]"].checked = true;
        } else {
            fm["pdf_order_id[]"].checked = false;
        }
    }
}

Change History

comment:1 Changed 11 years ago by nanasess

  • Milestone set to EC-CUBE2.5.0

milestone:EC-CUBE2.5.0 で対応したいと思います

comment:2 Changed 10 years ago by nanasess

  • Owner changed from somebody to nanasess
  • Description modified (diff)
  • Milestone changed from EC-CUBE2.5.0beta to EC-CUBE2.5.0

r19755 で修正

comment:3 Changed 10 years ago by nanasess

  • Status changed from new to closed
  • Resolution set to 修正済
Note: See TracTickets for help on using tickets.