From: Bernd Bleßmann Date: Tue, 2 Feb 2021 09:04:23 +0000 (+0100) Subject: Wiedervorlage: alte Masken: Abfangen, wenn z.B. Betreff nicht vorbelegt X-Git-Tag: kivitendo-mebil_0.1-0~9^2~491 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=38ac7c187c875616ffd2f93150c2eb19dc5d7e18;p=kivitendo-erp.git Wiedervorlage: alte Masken: Abfangen, wenn z.B. Betreff nicht vorbelegt Sonst gab es einen js-Fehler und das WV-Fenster erschien nicht. Kam mit commit 7b447b4dd0e756dc1578c44601d352811b768514 "Wiedervorlage aus Angebot/Auftrag: Betreff aus Vorgangsbezeichnung vorbelegen" rein. --- 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);