Closed (duplicate)
Project:
User Relationships
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
27 Jan 2010 at 18:36 UTC
Updated:
30 Apr 2012 at 22:48 UTC
There is a straightforward error in the _user_relationship_process_query_argument() function after the preg_match for a relative operator such as < or >=. The value is got from $matches[3] though inspection of the pattern shows that $matches[2] must be meant. Patch attached.
Comments
Comment #1
berdirSorry for pinging the participants.
Now that Drupal 7 is out, there is no support for Drupal 5 and the corresponding modules anymore. Therefore, I'm closing all old issues which are still open.
I suggest you upgrade to Drupal 6 or 7 and figure out if you're feature is still needed or the bug still exists and open a new issue in that case.
Comment #2
greenmachine commentedI can confirm that the same bug is present in the 6.x-1.0 version of the module.
View the file here: http://drupalcode.org/viewvc/drupal/contributions/modules/user_relations...
Line 183 sets the value to $matches[3] when (at least for created_at) it should be $matches[2]
Comment #3
mrf commentedTagging for a closer look.
Comment #4
mrf commentedFixed in latest 6.x dev
http://drupalcode.org/project/user_relationships.git/commit/08e15a2
Moving to 7 in case its still present there.
Comment #5
mrf commentedWell crap this is a duplicate of #985672: user_relationships_load not handling date-based parameters correctly which already had a patch, oh well guess its good to confirm from two different perspectives that we had the right fix...