- #510396 by yched - Use field/type definition to render fields in views.
authorMarc Ferran (aka Markus)
Wed, 22 Jul 2009 20:46:55 +0000 (20:46 +0000)
committerMarc Ferran (aka Markus)
Wed, 22 Jul 2009 20:46:55 +0000 (20:46 +0000)
includes/views/handlers/content_handler_field.inc
includes/views/handlers/content_handler_field_multiple.inc

index 708b5be..5416718 100644 (file)
@@ -170,7 +170,6 @@ class content_handler_field extends views_handler_field_node {
     // We're down to a single node here, so we can retrieve the actual field
     // definition for the node type being considered.
     $field = content_fields($this->content_field['field_name'], $values->{$this->aliases['type']});
-
     $options = $this->options;
     $db_info = content_database_info($field);
 
index 913a7b9..21e7a3a 100644 (file)
@@ -203,7 +203,9 @@ class content_handler_field_multiple extends content_handler_field {
       return parent::render($values);
     }
 
-    $field = $this->content_field;
+    // We're down to a single node here, so we can retrieve the actual field
+    // definition for the node type being considered.
+    $field = content_fields($this->content_field['field_name'], $values->{$this->aliases['type']});
     $options = $this->options;
 
     $vid = $values->{$this->field_alias};