Active
Project:
Dash Media Player
Version:
6.x-1.7
Component:
Code
Priority:
Critical
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
22 Apr 2010 at 12:29 UTC
Updated:
22 Apr 2010 at 12:29 UTC
Dash doesn't support views who uses relationships on result fields.
why?
In .module file on line 201, function dashplayer_get_view the code is as follows:
<?php
foreach ($view->result as $node) {
$new_node = new stdClass();
$temp = node_load($node->nid);
?>
$node->nid is not what it should use if the result field uses a relationship.
I have solved this issue with a dirty hack:
if ($view_name == 'relationship_video_list') {
$temp = node_load($node->node_node_data_field_attached_files_nid);
}
else {
$temp = node_load($node->nid);
}
basically, i ask if the player is using the view that have a relationship and if so, it loads the field that is used as the relationship instead of the base node nid. (only true for my private case)
we need however to find a generic solution for this if we what relationship views support