Commit 5f777a21 authored by Kyle Johnson's avatar Kyle Johnson 📚

Restore instance ID after processing.

parent cd51f2d6
Pipeline #1883 passed with stage
in 37 seconds
......@@ -52,6 +52,7 @@ class NF_AJAX_Controllers_Submission extends NF_Abstracts_Controller
/* Render Instance Fix */
if(strpos($this->_form_id, '_')){
$this->_form_instance_id = $this->_form_id;
list($this->_form_id) = explode('_', $this->_form_id);
$updated_fields = array();
......@@ -401,6 +402,9 @@ class NF_AJAX_Controllers_Submission extends NF_Abstracts_Controller
do_action( 'ninja_forms_after_submission', $this->_data );
// Restore form instance ID.
$this->_data[ 'form_id' ] = $this->_form_instance_id;
$this->_respond();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment