Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
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
drupal
Commits
c2d0eb20
Commit
c2d0eb20
authored
6 months ago
by
Ramprassad Suresh
Browse files
Options
Downloads
Patches
Plain Diff
PHPStan fixes
parent
b726ed3c
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!10400
Resolve #1156338 "Fixed maximum number 1"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/modules/field/field.install
+1
-1
1 addition, 1 deletion
core/modules/field/field.install
with
1 addition
and
1 deletion
core/modules/field/field.install
+
1
−
1
View file @
c2d0eb20
...
...
@@ -15,7 +15,7 @@ function field_update_last_removed(): int {
/**
* Adds default config for Show add more button for multivalued fields.
*/
function
field_update_9001
()
{
function
field_update_9001
()
:
void
{
// Get all the fields which are multivalued but not unlimited cardinality.
$query
=
\Drupal
::
entityQuery
(
'field_storage_config'
)
->
condition
(
'cardinality'
,
1
,
'>'
)
...
...
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