Needs review
Project:
Video CCK
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Jun 2007 at 18:57 UTC
Updated:
19 Jun 2007 at 18:57 UTC
I had to modify the video_cck module so it doesn't insert empty video fields in the database (which messed up display in Views) :
case 'insert':
case 'update':
if ($field['multiple']) {
foreach ($items as $delta => $item) {
$items[$delta]['data'] = serialize($items[$delta]['data']);
}
}
change to :
case 'insert':
case 'update':
if ($field['multiple']) {
foreach ($items as $delta => $item) {
if (trim($items[$delta]['value'])!='')
$items[$delta]['data'] = serialize($items[$delta]['data']);
}
}
I'm I the only one to have this problem ?