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

MisterSpeed’s picture

Assigned: Unassigned » MisterSpeed
MisterSpeed’s picture

Assigned: MisterSpeed » Unassigned
berdir’s picture

Status: Active » Closed (won't fix)

Sorry 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.