Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
I don't really know if it's a Emfield bug or CCK multigroup bug,
but the fix I've found is to be paced in Emfield, so…
When I use a Youtube embed field in a multigroup, the value is not saved.
After debugging, I've found that if I change
function emfield_emfield_content_is_empty($item, $field) {
return empty($item['value']);
}
to
function emfield_emfield_content_is_empty($item, $field) {
return (empty($item['value']) && empty($item['embed']));
}
everything works fine.
Comment | File | Size | Author |
---|---|---|---|
#5 | emfield-not-saved-value-in-cck-multigroup-1286274.patch | 402 bytes | jovanni.io1 |
Comments
Comment #1
heavy_engineer CreditAttribution: heavy_engineer commentedthanks, this works for me too.
Comment #2
dieppon CreditAttribution: dieppon commentedthis fixes the issue for us too.
Comment #3
TajinderSingh CreditAttribution: TajinderSingh commentedFixes the issue.
Comment #4
jdanthinne CreditAttribution: jdanthinne commentedComment #5
jovanni.io1 CreditAttribution: jovanni.io1 commentedI have created patch for this issue.
Comment #7
aaron CreditAttribution: aaron commentedCommitted to http://drupalcode.org/project/emfield.git/commit/f19cc39.