Problem/Motivation
When trying to delete the field field_media_single
And replace it with another field, this error will appear
nvalidArgumentException: Field field_media_single is unknown. in Drupal\Core\Entity\ContentEntityBase->getTranslatedField() (line 587 of /app/docroot/core/lib/Drupal/Core/Entity/ContentEntityBase.php)."
Steps to reproduce
Delete the field_media_single field and add a new field
Proposed resolution
- Have a check if the node has the field.
Remaining tasks
- ✅ File an issue about this project
- ✅ Fix to have a check if the node has the field
- ✅ Testing to ensure no regression
- ➖ Automated unit/functional testing coverage
- ➖ Developer Documentation support on feature change/addition
- ➖ User Guide Documentation support on feature change/addition
- ✅ Code review from 1 team member
- ✅ Full testing and approval
- ✅ Credit contributors
- ✅ Review with the product owner
- ✅ Release varbase-9.0.2, varbase_heroslider_media-9.0.1
User interface changes
- None
API changes
- None
Data model changes
- None
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | fix_field_media_single_unknown-3227717-3.patch | 774 bytes | yousefanbar |
Comments
Comment #2
yousefanbar commentedComment #3
yousefanbar commentedComment #4
yousefanbar commentedComment #5
rajab natshahComment #6
rajab natshahComment #8
rajab natshahComment #9
rajab natshahComment #10
rajab natshahComment #11
rajab natshahComment #13
rajab natshahComment #14
rajab natshahComment #15
rajab natshah