From 38ac7c187c875616ffd2f93150c2eb19dc5d7e18 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Tue, 2 Feb 2021 10:04:23 +0100 Subject: [PATCH] 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. --- js/follow_up.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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); -- 2.20.1