Closed (won't fix)
Project:
User Relationships
Version:
5.x-2.8
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Apr 2009 at 20:53 UTC
Updated:
8 Feb 2011 at 19:06 UTC
When editing relationship types, it does not write back the changes to the database. The form_submit hook user_relationships_type_edit_submit in user_relations_actions.inc uses a non existing value for rtid in the UPDATE statement.
It says
db_query(
"UPDATE {user_relationship_types}
SET name = '%s', plural_name = '%s', is_oneway = %d, requires_approval = %d, expires_val = %d
WHERE rtid = %d",
$form_values['name'],
$form_values['plural_name'],
$form_values['is_oneway'],
$form_values['requires_approval'],
$form_values['expires_val'],
$form_values['relationship_type']->rtid
);
but should say
db_query(
"UPDATE {user_relationship_types}
SET name = '%s', plural_name = '%s', is_oneway = %d, requires_approval = %d, expires_val = %d
WHERE rtid = %d",
$form_values['name'],
$form_values['plural_name'],
$form_values['is_oneway'],
$form_values['requires_approval'],
$form_values['expires_val'],
$form_values['rtid']
);
Comments
Comment #1
MisterSpeed commentedComment #2
MisterSpeed commentedComment #3
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.