Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
// if ($account->hasField($field->getName()) && !$account->get($field->getName())->isEmpty())
I think that the missing parentheses.
// $missing_components = array_diff(array_keys($minimum_components), array_keys($item_components));
If I understand correctly we need only the keys.
Comment | File | Size | Author |
---|---|---|---|
#5 | undefined_index.patch | 1.02 KB | devpreview |
| |||
#3 | is_anonymous.patch | 422 bytes | devpreview |
|
Comments
Comment #1
webflo CreditAttribution: webflo commentedThanks for all your patches. Could you reroll this one?
Comment #2
devpreview CreditAttribution: devpreview commentedThanks for your work!
I prepared a patch with the remaining changes.
Comment #3
devpreview CreditAttribution: devpreview commentedCheck if user is anonymous.
Comment #4
devpreview CreditAttribution: devpreview commentedComment #5
devpreview CreditAttribution: devpreview commentedForgotten parentheses operator comparisons
Comment #8
webflo CreditAttribution: webflo at UEBERBIT GmbH commentedGood catch. Thanks!