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.
When I add an image field to my taxonomy term, the json/xml/... response returns an empty array.
Comment | File | Size | Author |
---|---|---|---|
#4 | restws-empty_field_image-2568805-4.patch | 846 bytes | joejoejoew |
#3 | restws-empty_field_image-2568805-3.patch | 899 bytes | joejoejoew |
#2 | restws-empty_field_image-2568805-2.patch | 789 bytes | joejoejoew |
2015-09-15_14-38-53.png | 12.21 KB | falc0 |
Comments
Comment #2
joejoejoew CreditAttribution: joejoejoew commentedI see this, too. For a single valued image field, if it is empty, an empty array is returned instead of null. Here's a patch.
Comment #3
joejoejoew CreditAttribution: joejoejoew commented#2 wasn't quite right, here's another
Comment #4
joejoejoew CreditAttribution: joejoejoew commentedoops, here's a correctly formatted patch
Comment #5
lokapujyaCurious, is this problem with images only on taxonomy terms? If so, how is that?