From 8695c528910ac0b4a6d4054cda25dc87d958361a Mon Sep 17 00:00:00 2001 From: phl0 Date: Thu, 29 Dec 2022 17:59:41 +0100 Subject: [PATCH] Add user message to email --- application/controllers/Oqrs.php | 1 + application/views/email/oqrs_request.php | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/application/controllers/Oqrs.php b/application/controllers/Oqrs.php index 3500ad1d..66042f60 100644 --- a/application/controllers/Oqrs.php +++ b/application/controllers/Oqrs.php @@ -160,6 +160,7 @@ class Oqrs extends CI_Controller { } $data['callsign'] = $this->security->xss_clean($postdata['callsign']); + $data['usermessage'] = $this->security->xss_clean($postdata['message']); $message = $this->load->view('email/oqrs_request', $data, TRUE); diff --git a/application/views/email/oqrs_request.php b/application/views/email/oqrs_request.php index 1518fc85..b1e55fe3 100644 --- a/application/views/email/oqrs_request.php +++ b/application/views/email/oqrs_request.php @@ -1,8 +1,12 @@ Hi, -You got an OQRS request from . +You got an OQRS request from . +The user entered the following message: + + + Please log into your Cloudlog and process it. Regards, -Cloudlog. \ No newline at end of file +Cloudlog.