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.
There's a bug inside FieldCollectionItemEntity::langcode method.
if ($this->delta() != NULL) {
return $this->langcode;
}
As you see it does inappropriate comparison !=. The comparison should be strict including data type !==, because delta method returns int, which could be zero.
Attaching patch to fix the bug.
Comment | File | Size | Author |
---|---|---|---|
#1 | 2336647-entity-langcode-fix.patch | 442 bytes | nostop8 |
Comments
Comment #1
nostop8 CreditAttribution: nostop8 commentedComment #3
jmuzz CreditAttribution: jmuzz commentedNice find. Thanks!