Multiple Image Fields lost caption after save

Created on 26 August 2022, over 2 years ago
Updated 17 April 2024, 8 months ago

Drupal 9.4.5
PHP 8.1.9
Image Field Caption 1.2
Paragraph 8.x-1.15
Layout Paragraphs 1.0.0

I have 2 paragraphs, gallery and image. An image can add 1 image, a gallery can add multiple images. when i add an image over layout paragraphs and caption it erases the other captions.

example
- add image with caption and save
- add another image/ gallery with caption and save
- it exist now only latest caption

🐛 Bug report
Status

Needs review

Version

1.2

Component

Code

Created by

🇩🇪Germany heavystonehead

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • First commit to issue fork.
  • @stefank opened merge request.
  • 🇬🇧United Kingdom stefank

    For me, when I was saving a translation, the value in the source entity has been lost. The image field is part of paragraph. Tracked it down to a sql query to get the caption with revision_id condition.
    @HeavyStoneHead FYI, all of the values are stored in DB, so its worth to check if this is your case as well.
    This is the first step for fixing the code, but overall it has fixed the issue for me.

  • Status changed to Needs review 8 months ago
  • 🇬🇧United Kingdom stefank
Production build 0.71.5 2024