Problem/Motivation
Using FieldStorageConfigStorage::loadByProperties() with the entity_type and field_name as conditions doesn't return the right result because the ID of the entity is generated incorrectly (the '.' is missing).
Proposed resolution
Add the missing '.' .
Remaining tasks
None.
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | 2917606-9.patch | 1.93 KB | init90 |
| #9 | 2917606-9-test_only.patch | 1.17 KB | init90 |
Comments
Comment #2
juliaschwarz commentedComment #3
juliaschwarz commentedComment #4
juliaschwarz commentedComment #6
simeIssue confirmed, the fix works.
Comment #7
simeReplicated in Drupal 9. Should be an easy test to add.
Comment #8
init90Comment #9
init90Comment #10
init90Comment #11
init90Closed #2941161: Field storage config storage incorrectly loads by properties as a duplicate of this one. Please add credits for people who worked on it.
Comment #13
init90Seems like a random test fail.
Comment #15
amateescu commentedBringing in issue credits from #2941161: Field storage config storage incorrectly loads by properties.
The patch looks great to me, nice work!
Comment #17
catchLooks great.
Committed 728e4f7 and pushed to 9.2.x. Thanks!
Comment #20
nsuit commentedI think I am seeing the same issue with a different set of conditions.
Drupal 9.4.9, PHP8.1, MySQL db
Using loadByProperties() with 'entity_type' and 'sid' as conditions together, I don't get any results. Sid is the submission id form webforms.
However, I do get results if I use each of the conditions alone.
I think it is a problem with webforms not core.