Download & Extend

Value not saved when used in a CCK Multigroup

Project:Embedded Media Field
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

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

<?php
function emfield_emfield_content_is_empty($item, $field) {
  return empty(
$item['value']);
}
?>

to
<?php
function emfield_emfield_content_is_empty($item, $field) {
  return (empty(
$item['value']) && empty($item['embed']));
}
?>

everything works fine.

Comments

#1

thanks, this works for me too.

#2

this fixes the issue for us too.