Fix a bug to delete email after send or forward

This commit is contained in:
FusionPBX 2024-07-30 11:34:47 -06:00 committed by GitHub
parent 0c32c43e9a
commit 6285413dd9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 4 deletions

View File

@ -1,5 +1,5 @@
-- Part of FusionPBX
-- Copyright (C) 2013 - 2020 Mark J Crane <markjcrane@fusionpbx.com>
-- Copyright (C) 2013 - 2024 Mark J Crane <markjcrane@fusionpbx.com>
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
@ -199,10 +199,11 @@
link_address = http_protocol.."://"..domain_name..project_path;
--set proper delete status
if (voicemail_local_after_email == "false" and voicemail_local_after_forward == "false") then
local local_after_email = "false";
local local_after_email = '';
if (voicemail_local_after_email == "false" or voicemail_local_after_forward == "false") then
local_after_email = "false";
else
local local_after_email = "true";
local_after_email = "true";
end
--prepare the headers