From 6d6d4ae0037f377f6bdcdab6f838a641e91eb957 Mon Sep 17 00:00:00 2001 From: Niclas Norin <103985736+NiclasNorin@users.noreply.github.com> Date: Mon, 9 Dec 2024 13:07:27 +0100 Subject: [PATCH] fix: remove history and url from notification (#98) --- source/php/Submission.php | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/source/php/Submission.php b/source/php/Submission.php index d557e81a..5984cbfc 100644 --- a/source/php/Submission.php +++ b/source/php/Submission.php @@ -608,23 +608,8 @@ public function notify($email, $formId, $submissionId, $from = null) $message .= (!empty($subvalue)) ? $subvalue . $lineBreak : ''; } } - } else { - if ($key === 'modularity-form-history') { - $message .= ($value !== null && $value !== 'null') ? '' . __( - 'Referrer', - 'modularity-form-builder' - ) . '
' . $value : __( - 'No Referrer', - 'modularity-form-builder' - ); - } else { - if ($key === 'modularity-form-url') { - $message .= '' . __('Form', 'modularity-form-builder') . '
' . $value; - } else { - $message .= '' . $key . '
' . $value; - } - } } + $i++; } }