From 3938398b1f61ad6c0076bf4c30e38e16d1654579 Mon Sep 17 00:00:00 2001 From: fusionate Date: Wed, 24 Jan 2024 18:41:12 +0000 Subject: [PATCH] Email Queue - Edit: Hide Response field if response disabled. --- app/email_queue/email_queue_edit.php | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/app/email_queue/email_queue_edit.php b/app/email_queue/email_queue_edit.php index 1a8643ee8a..d53f08d734 100644 --- a/app/email_queue/email_queue_edit.php +++ b/app/email_queue/email_queue_edit.php @@ -17,7 +17,7 @@ The Initial Developer of the Original Code is Mark J Crane - Portions created by the Initial Developer are Copyright (C) 2022-2023 + Portions created by the Initial Developer are Copyright (C) 2022-2024 the Initial Developer. All Rights Reserved. Contributor(s): @@ -392,16 +392,18 @@ echo "\n"; echo "\n"; - echo "\n"; - echo "\n"; - echo " ".$text['label-email_response']."\n"; - echo "\n"; - echo "\n"; - echo " \n"; - echo "
\n"; - echo ($text['description-email_response'] ?? '')."\n"; - echo "\n"; - echo "\n"; + if ($_SESSION['email_queue']['save_response']['boolean'] == 'true') { + echo "\n"; + echo "\n"; + echo " ".$text['label-email_response']."\n"; + echo "\n"; + echo "\n"; + echo " \n"; + echo "
\n"; + echo ($text['description-email_response'] ?? '')."\n"; + echo "\n"; + echo "\n"; + } echo ""; echo "

";