Hi there,

I have come across an error when using the entity browser module where image duplication is happening on node save when using the paragraphs module.

Steps to create.

  • Create a paragraph entity with a title & image field (Use core image field & enable/require ALT attribute).
  • Create a content type referencing the new paragraph entity - field set to unlimited.
  • Create a node, adding multiple paragraphs & upload a different image to each reference.
  • Save the node - you will get an error saying ALT title is missing from the fields & all images are now replaced by the last image uploaded.

I have included screen grabs so you can see this incase the above doesn't make sense.

I've tried looking into the code & it looks as though it could be the storage not having a unique ID to the referenced content but that's just a guess. Does anyone have any ideas on how to patch this?

Thank you,

Comments

i_g_wright created an issue. See original summary.

mkudenko’s picture

I'm having the same issue.

In my case the parent entity and the attached paragraph both have an multi-value entity reference field and reference the same entity bundle.

arla’s picture

In my experience, the dev branch of entity_browser handles paragraphs a bit better, although still not flawlessly. Would you mind testing the dev version in your cases?

i_g_wright’s picture

StatusFileSize
new16.05 KB

Hi Arla,

Thanks for the suggestion. When reviewing last week (8th) I did try the dev version but it didn't work.

It appears though, the latest work completed on the 10th is working successfully! I'm pleased to say the node saves successfully with the correct images.

I've attached a screen grab again for anyone that comes across this ticket.

Kind regards,

i_g_wright’s picture

Version: 8.x-1.0-alpha3 » 8.x-1.x-dev
Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.