Problem/Motivation
When convert entity type and try to changes some field values which aren't that another content type and are empty option Create field values for new fields in target content type not working
Steps to reproduce
Content Type A has title and body field
Convert content type A
1) To content type B which has title, body and term fields
2) Body to body
3) Select Create field values for new fields in target content type
4) Put something on term value
5) are you sure, yes
Node is now content type B which has title and body values but term value is empty
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3214960-1.patch | 523 bytes | el1_1el |
Comments
Comment #2
el1_1el commentedI can't imagine this feature ever worked but I might be missing something. Give this patch a try. If you don't encounter any issues and report its working, I'll commit to dev branch
Comment #3
tvalimaa commentedIt is working.
Comment #4
tvalimaa commentedStill not sure if this module & patch is the reason warning or is it something else so still investigating where that warning comes:
Warning: array_flip(): Can only flip STRING and INTEGER values! in Drupal\Core\Entity\EntityStorageBase->loadMultiple() (line 261 of core/lib/Drupal/Core/Entity/EntityStorageBase.php).I got this when I use Select Create field values for new fields in target content type and convert is done and it redirects node page
Comment #5
tvalimaa commentedYeah those was mine typos for custom module "fix" so the #2 patch work just fine
Comment #6
tvalimaa commentedComment #8
el1_1el commentedComment #10
el1_1el commentedsorry but I had to revert this commit after having a number of failed conversions and with only 11 sites using the dev branch i think it may have been correct to begin with. please reopen if you find the same issue.