Commit 62b06c38 authored by KR Moorhouse's avatar KR Moorhouse

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

parent e9786bfb
Pipeline #2829 passed with stages
in 5 minutes and 55 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