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.
Problem/Motivation
Actually when we configure a bundle "Image" during the create process we have to add field_image to be automatically recover but configuration aren't updated and when we try to upload an image a notice appear because $source_field is empty and code does not support/prevent this case.
Proposed resolution
Prevent this case and refactor smally file recovery to use Refactor method "Extract Method" to increase readability in code.
Comment | File | Size | Author |
---|---|---|---|
#2 | fixe_notice_thumbnail-2923293-2.patch | 6.08 KB | woprrr |
Capture d’écran 2017-11-14 à 10.34.06.png | 1.14 MB | woprrr | |
Capture d’écran 2017-11-13 à 23.30.46.png | 513.56 KB | woprrr |
Comments
Comment #2
woprrr CreditAttribution: woprrr as a volunteer and commentedThis patch solve this notice and fixe five coding standard miss.
Comment #4
woprrr CreditAttribution: woprrr as a volunteer and commentedTests fail before this issue caused by media_entity route enhancer deprecated usage.