Skip to content
Snippets Groups Projects
Commit 953483fe authored by Lucas García's avatar Lucas García
Browse files

feat: exit submission if not bound

parent 9ca817ed
No related branches found
No related tags found
No related merge requests found
......@@ -4,11 +4,8 @@ function wpct_crm_forms_api_submissions($entry, $form)
{
$form_vals = wpct_crm_forms_parse_form_entry($entry, $form);
if (!isset($form_vals['source_xml_id'])) {
$form_id = rgat($form, 'id');
$form_title = rgar($form, 'title');
$form_vals['source_xml_id'] = "{$form_id}_{$form_title}";
}
// Exit submission if form isn't bound to Odoo
if (!isset($form_vals['source_xml_id'])) return;
$submission_payload = apply_filters('wpct_crm_forms_prepare_submission', $form_vals);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment