Apr 9th, 2010, 7:14 AM
The code to trigger sending of the mail just seems to be missing in the ft_finalize_submission function.
I found this worked (updating version 2.0.0)
global/code/submissions.php line ~852
find the function
function ft_finalize_submission($form_id, $submission_id)
just before
return true;
}
in the function add
ft_send_emails("on_submission", $form_id, $submission_id);
so the function looks like
That works well for me
I found this worked (updating version 2.0.0)
global/code/submissions.php line ~852
find the function
function ft_finalize_submission($form_id, $submission_id)
just before
return true;
}
in the function add
ft_send_emails("on_submission", $form_id, $submission_id);
so the function looks like
Code:
function ft_finalize_submission($form_id, $submission_id)
{
global $g_table_prefix;
// check the form_id is valid
if (!ft_check_form_exists($form_id))
return false;
$query = "
UPDATE {$g_table_prefix}form_$form_id
SET is_finalized = 'yes'
WHERE submission_id = $submission_id
";
$result = mysql_query($query);
ft_send_emails("on_submission", $form_id, $submission_id);
return true;
}
That works well for me
(Mar 22nd, 2010, 10:14 PM)martin_undefined Wrote: Hi,
Missed that this is a known bug. I am indeed using the ipn.php route. Any workarounds?
Thanks
Martin