Skip to content
Snippets Groups Projects
Commit c89253c6 authored by Glen Huygens's avatar Glen Huygens Committed by Eli Stone
Browse files

Issue #3312248 by ghuygens: Saving field settings cuases errors and warnings

parent 96805ee1
No related branches found
No related tags found
No related merge requests found
......@@ -584,7 +584,7 @@ function unique_field_ajax_validate_unique($element, FormStateInterface $form_st
$case_sensitive = $element['#unique_field_ajax_settings']['case_sensitive'];
// If field is not unique set error.
$valid = unique_field_ajax_is_unique($entity_type, $langcode, $field_name, $value[0][$property], $entity->bundle(), $per_lang, $case_sensitive, $entity);
$valid = unique_field_ajax_is_unique($entity_type, $langcode, $field_name, $value[0][$property] ?? "", $entity->bundle(), $per_lang, $case_sensitive, $entity);
$message = unique_field_ajax_custom_message($entity, $element, $valid, $property, FALSE);
if ($valid !== TRUE) {
......
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