grthtrhthjhtyjytjytkergtrhtrjytjerhrfh4:24 29/09/2026retrieve($_REQUEST['record']); $email_type = $focus->type; if (!$focus->ACLAccess('Delete')) { ACLController::displayNoAccess(true); sugar_cleanup(true); } $focus->mark_deleted($_REQUEST['record']); // make sure assigned_user_id is set - during testing this isn't always set if (!isset($_REQUEST['assigned_user_id'])) { $_REQUEST['assigned_user_id'] = ''; } if ($email_type == 'archived') { global $current_user; $loc = 'Location: index.php?module=Emails'; } else { $loc = 'Location: index.php?module='.$_REQUEST['return_module'].'&action='.$_REQUEST['return_action'].'&record='.$_REQUEST['return_id'].'&type='.$_REQUEST['type'].'&assigned_user_id='.$_REQUEST['assigned_user_id']; } header($loc);