summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--filefield_field.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/filefield_field.inc b/filefield_field.inc
index 0927742..8642419 100644
--- a/filefield_field.inc
+++ b/filefield_field.inc
@@ -237,6 +237,7 @@ function filefield_field_sanitize($node, $field, &$items, $teaser, $page) {
// TODO: Provide an API to ImageField to do this itself?
if (!empty($field['widget']['use_default_image']) && !empty($field['widget']['default_image']['filepath'])) {
$items[$delta] = $field['widget']['default_image'];
+ $items[$delta]['default'] = TRUE;
}
else {
$items[$delta] = NULL;