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

index b714c20..138ddc9 100644 (file)
@@ -27,6 +27,7 @@ Bugfixes:
 - #505278 by Michelle, merlinofchaos - Provide backward compatibility with previous method to build Panels 3 subtype names for fields.
 - #523864 Minor coding style issues in Panels 3 relationships implementations.
 - #481568 by merlinofchaos - Empty property error when attempting to save a user reference in Panels.
+- #510396 by yched - Use field/type definition to render fields in views.
 
 CCK 6.x-2.4
 ===========
index 3522541..708b5be 100644 (file)
@@ -167,7 +167,10 @@ class content_handler_field extends views_handler_field_node {
   }
 
   function 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;
     $db_info = content_database_info($field);