Closed (fixed)
Project:
User Relationships
Version:
6.x-1.0-rc2
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
21 Oct 2009 at 12:55 UTC
Updated:
27 Nov 2009 at 22:30 UTC
Jump to comment: Most recent file
Comments
Comment #1
yoeld commentedHere is the exported view. Maybe someone wants to look inside?
Comment #2
alex.k commentedHmm, in UR-Views it appears the field is specified as click sortable, so it should appear among sort options.
Is it sortable if you show your view as a table, and check the sort option in table display options?
Comment #3
yoeld commentedHi Alex,
Yes, using the table layout could be a kind of workaround since it is possible to determine the sort order to the column and have it preset.
But for design purposes, I need to use the HTML list option ... . Any idea on how I could achieve this?
Thanks, Yoel
Comment #4
alex.k commentedI'm pretty sure it is an easy fix in the way the field is declared to Views. After all, it's inherently sortable, and uses the same display/filter bits as other core date elements.
Comment #5
alex.k commentedCommitted a fix for this in http://drupal.org/cvs?commit=279834. You will need to clear views cache in admin/build/views/tools. Attaching a test view that takes advantage of sorting. Please post back with results, hope it works.
Comment #6
yoeld commentedHi Alex,
I have imported your view for testing.
In the sort section, I get an error: Error: handler for user_relationships > created_at doesn't exist!
It is logical in my case since the only available field for UR in the sort section is: User relationships: RTID
Any idea? Thanks.
Comment #7
alex.k commented@yoeld have you upgraded to today's -dev release? You need to do that and run through update.php for this to work.
Comment #8
yoeld commentedOoops! Sorry ... .
Comment #9
yoeld commentedHi Alex,
I installed the latest dev version and run the update.php.
Still no change. I have added the picture of the view, just for your information.
Any suggestion? MANY thanks!
Comment #10
alex.k commentedI still cannot reproduce even after a complete uninstall and reinstall of UR. Some code must be missing in your installation. Specifically, in user_relationship_views/user_relationship_views.views.inc you should be seeing this snippet twice:
[EDIT] make sure you are running the latest Views, too.
Comment #11
yoeld commentedHi Alex,
That's what made the difference. It is now working perfectly.
Thanks for helping!