Commit 0c0b31c7 authored by Eric Windham's avatar Eric Windham

Merge branch '4089-skip-unique-on-resume' into 'develop'

Avoid re-running unique field check on submission resume. #4089

Closes #4089

See merge request !3883
parents 0a336205 8eb5e2b5
......@@ -266,7 +266,10 @@ class NF_AJAX_Controllers_Submission extends NF_Abstracts_Controller
| Check for unique field settings.
|--------------------------------------------------------------------------
*/
if ( isset ( $this->_data[ 'settings' ][ 'unique_field' ] ) && ! empty( $this->_data[ 'settings' ][ 'unique_field' ] ) ) {
if ( isset( $this->_data[ 'resume' ] ) && $this->_data[ 'resume' ] ){
// On Resume Submission, we don't need to run this check again.
// This section intentionally left blank.
} elseif ( isset ( $this->_data[ 'settings' ][ 'unique_field' ] ) && ! empty( $this->_data[ 'settings' ][ 'unique_field' ] ) ) {
/*
* Get our unique field
*/
......
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