Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
unique_field_ajax
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
unique_field_ajax
Commits
c89253c6
Commit
c89253c6
authored
1 year ago
by
Glen Huygens
Committed by
Eli Stone
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3312248
by ghuygens: Saving field settings cuases errors and warnings
parent
96805ee1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
unique_field_ajax.module
+1
-1
1 addition, 1 deletion
unique_field_ajax.module
with
1 addition
and
1 deletion
unique_field_ajax.module
+
1
−
1
View file @
c89253c6
...
...
@@ -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
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment