From f831b9f7fa4b7f928c41155cfe5909400988a71c Mon Sep 17 00:00:00 2001 From: Martinski <119833648+Martinski4GitHub@users.noreply.github.com> Date: Sun, 30 Mar 2025 20:20:39 -0700 Subject: [PATCH] Improved Check for Secondary Email Address Improved code to check and make sure the "Secondary Email Address" option actually exists and has been set before setting WebGUI field correctly. --- MerlinAU.asp | 6 ++++-- version.txt | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/MerlinAU.asp b/MerlinAU.asp index a0b32529..b3af5fae 100644 --- a/MerlinAU.asp +++ b/MerlinAU.asp @@ -1273,7 +1273,7 @@ function ToggleEmailDependents (isEmailNotifyChecked) } /**----------------------------------------**/ -/** Modified by Martinski W. [2025-Mar-01] **/ +/** Modified by Martinski W. [2025-Mar-30] **/ /**----------------------------------------**/ function SetUpEmailNotificationFields() { @@ -1287,7 +1287,9 @@ function SetUpEmailNotificationFields() // If not yet set show a blank field instead of 'TBD' // if (secondaryEmail) { - if (custom_settings.FW_New_Update_EMail_CC_Address === 'TBD') + if (custom_settings.FW_New_Update_EMail_CC_Address === null || + custom_settings.FW_New_Update_EMail_CC_Address === 'TBD' || + typeof custom_settings.FW_New_Update_EMail_CC_Address === 'undefined') { secondaryEmail.value = ''; } else { secondaryEmail.value = custom_settings.FW_New_Update_EMail_CC_Address; } diff --git a/version.txt b/version.txt index 178bb98c..cb4631cf 100644 --- a/version.txt +++ b/version.txt @@ -1,2 +1,2 @@ 1.4.0 -25033001 +25033020