I've updated views and link modules, I used to have a view listing links fields (showing the title), now it doesn't show the title, instead it shows the link address. Something I'm missing?

I have Drupal 5.1

Comments

quicksketch’s picture

Project: Link » Content Construction Kit (CCK)
Version: 5.x-1.5 » 5.x-1.4
Component: User interface » Views Integration

This is a problem with views that I have experienced also. When the formatter function is being called from views it receives the same information in every part of the $item parameter such as:


$item = array(
[url] = http://www.google.com
[title] = http://www.google.com
[attributes] = http://www.google.com
);

Obviously this makes things appear incorrectly. Since link module doesn't handle any of it's own database queries, there's little this module can do to correct this. I think this likely has to do with the CCK implementation of views, not views itself so I'm moving to CCK issue queue. Please provide additional information if possible about your CCK and Views versions (exact numbers) Thanks!

pnikosis’s picture

Thanks for the help, the CCK version is 5.x-1.4 and the Views version is 5.x-1.5

yched’s picture

Status: Active » Fixed

OK, fixed - I committed http://drupal.org/node/108226#comment-202223 too fast :-)
Thanks quicksketch for pinning this down :-)

quicksketch’s picture

Thanks yched! That makes for happy link users :)

yched’s picture

BTW, considering this was also messing text fields' 'format' column, I wonder if this could be considered a critical security issue ?

pnikosis’s picture

Thanks! Now I'm Happy :)

FarmGrrl’s picture

I don't use views_fusion, so how do I use this patch? I really want this issue to be fixed because it's really breaking my layout. I looked in the patch file, but my cck/content_view.inc does not have that line at all. I'm using CCK 1.4 and Views 1.5.

yched’s picture

You can either download latest CCK 1.X-dev tarball (under the "view all releases" link on CCK's project page),
or manually remove that line in content_views.inc :

$item[$column] = $data->$field_data['queryname'];

and replace it with

$view_column_name = $field_data['tablename'] .'_'. $attributes['column'];
$item[$column] = $data->$view_column_name;
FarmGrrl’s picture

Thank you so much! That's wonderful! :D

Anonymous’s picture

Status: Fixed » Closed (fixed)