Problem/Motivation
I am using an Acquia Drupal Starter Kit for my site and their module Acquia Drupal Starter Kit Image has the media image field machine name set to image. When trying to use this module, I am unable to upload an image or save an AI created image.
Steps to reproduce
- Install an site using an Acquia Drupal Starter
- Enable and configure AI Media Image
- Create an Article with an uploading image or AI created image.
Proposed resolution
Update code where field_media_image is hardcoded.
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork ai_media_image-3506505
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 #3
kevinfunkComment #4
kevinfunkComment #5
freelockMy site uses "field_image" for the image field name in Media. Before applying this patch, I could generate an image, but after saving it was lost entirely, and the media item had no thumbnail or anything.
After applying this patch, it works as expected -- after generating the image, it's properly attached to the media item.
Comment #8
coffeymachine commentedNice catch, thanks @kevinfunk. Merged.
Comment #10
coffeymachine commentedAdding credit.