Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Steps to reproduce:
1. Add media field (reference) to any content type
2. Make this media field not required
3. Access /jsonapi/node/{content_type}/{uuid}/{media_field}
See:
Notice: Undefined offset: 0 in /web/modules/contrib/jsonapi_extras/modules/jsonapi_defaults/src/Controller/EntityResource.php on line 143
Comment | File | Size | Author |
---|---|---|---|
#7 | interdiff-2-7.txt | 489 bytes | S_Bhandari |
#7 | 3112495-7.patch | 571 bytes | S_Bhandari |
| |||
#2 | 3112495-2.patch | 530 bytes | dmitry.korhov |
Comments
Comment #2
dmitry.korhovComment #3
dmitry.korhovComment #4
bbralaDoesn't this change what is returned? Before it would return
NULL
notFALSE
like it does now.Comment #5
S_Bhandari CreditAttribution: S_Bhandari as a volunteer and at Srijan | A Material+ Company for Drupal India Association commentedHi,
Working on it. I Will update as soon as possible.
Thanks.
Comment #6
bbralaAwesome! Thanks!
Comment #7
S_Bhandari CreditAttribution: S_Bhandari as a volunteer and at Srijan | A Material+ Company for Drupal India Association commentedHi,
Added a patch and interdiff for the same. Please review it and let me know for any observation.
Thanks.
Comment #9
bbralaThanks!