Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Issue fork image_field_caption-3306138
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #5
stefank CreditAttribution: stefank commentedFor 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.