Commit 7fc8a9b4 authored by Iain Poulson's avatar Iain Poulson

Merge branch 'issue#4041' into 'develop'

Added an additional check to ensure that unique field restrictions don't honor null values.

Closes #4041

See merge request !3853
parents e9786bfb 62b06c38
Pipeline #2832 passed with stages
in 5 minutes and 43 seconds
......@@ -273,6 +273,7 @@ class NF_AJAX_Controllers_Submission extends NF_Abstracts_Controller
$unique_field_value = serialize( $unique_field_value );
}
if ( ! empty($unique_field_value) ) {
/*
* Check our db for the value submitted.
*/
......@@ -286,6 +287,7 @@ class NF_AJAX_Controllers_Submission extends NF_Abstracts_Controller
$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