From 70c5e22fa1ba6200b47a259f6cbb22b701bb44a9 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Mon, 21 Feb 2022 22:20:20 -0500 Subject: [PATCH] Update Guest View quote to include the new notification system --- guest_view_quote.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guest_view_quote.php b/guest_view_quote.php index 87122f3f..0d73ea4a 100644 --- a/guest_view_quote.php +++ b/guest_view_quote.php @@ -77,7 +77,7 @@ if(isset($_GET['quote_id'], $_GET['url_key'])){ //Mark viewed in history mysqli_query($mysqli,"INSERT INTO history SET history_date = CURDATE(), history_status = '$quote_status', history_description = 'Quote viewed - $ip - $os - $browser - $device', history_created_at = NOW(), history_quote_id = $quote_id, company_id = $company_id"); - mysqli_query($mysqli,"INSERT INTO alerts SET alert_type = 'Quote Viewed', alert_message = 'Quote $quote_number has been viewed by $client_name - $ip - $os - $browser - $device', alert_date = NOW(), company_id = $company_id"); + mysqli_query($mysqli,"INSERT INTO notifications SET notification_type = 'Quote Viewed', notification = 'Quote $quote_number has been viewed by $client_name - $ip - $os - $browser - $device', notification_timestamp = NOW(), notification_client_id = $client_id, company_id = $company_id"); ?>