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.
This path makes the fieldfield_meta function check to see that there is a filepath on the file object before analyzing.
Comment | File | Size | Author |
---|---|---|---|
#2 | filefield_meta_no_load.patch | 839 bytes | quicksketch |
#1 | check-filepath-1321318.patch | 596 bytes | Souvent22 |
Comments
Comment #1
Souvent22 CreditAttribution: Souvent22 commentedPatch attached.
Comment #2
quicksketchInitially I didn't think this was a very good idea, since the file should always be there... but then thinking about dev/staging environments where the file might be missing on disk even if it's in the DB. I adjusted the patch slightly, but the end-result is the same. Thanks.