X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=js%2Ffollow_up.js;h=83132ac5802d959274900da832599276b0695111;hb=f4da9593b8f91ae5d57437ed124f9c9d859bc698;hp=f22308bb0fc00c8b885b03cf662547c0754abf16;hpb=7b447b4dd0e756dc1578c44601d352811b768514;p=kivitendo-erp.git diff --git a/js/follow_up.js b/js/follow_up.js index f22308bb0..83132ac58 100644 --- a/js/follow_up.js +++ b/js/follow_up.js @@ -18,10 +18,10 @@ function follow_up_window() { var trans_subject = document.getElementsByName("follow_up_trans_subject_" + i); url += "&" + - "trans_id_" + i + "=" + encodeURIComponent(typeof trans_id != "undefined" ? trans_id[0].value : "") + "&" + - "trans_type_" + i + "=" + encodeURIComponent(typeof trans_type != "undefined" ? trans_type[0].value : "") + "&" + - "trans_info_" + i + "=" + encodeURIComponent(typeof trans_info != "undefined" ? trans_info[0].value : "") + "&" + - "trans_subject_" + i + "=" + encodeURIComponent(typeof trans_subject != "undefined" ? trans_subject[0].value : ""); + "trans_id_" + i + "=" + encodeURIComponent((typeof trans_id != "undefined" && trans_id.length != 0) ? trans_id[0].value : "") + "&" + + "trans_type_" + i + "=" + encodeURIComponent((typeof trans_type != "undefined" && trans_type.length != 0) ? trans_type[0].value : "") + "&" + + "trans_info_" + i + "=" + encodeURIComponent((typeof trans_info != "undefined" && trans_info.length != 0) ? trans_info[0].value : "") + "&" + + "trans_subject_" + i + "=" + encodeURIComponent((typeof trans_subject != "undefined" && trans_subject.length != 0) ? trans_subject[0].value : ""); } url += "&trans_rowcount=" + encodeURIComponent(trans_rowcount[0].value);