hi all,

I've managed to install UR 6.x-1.0-rc2 onto Drupal 6.13. WindowsXP platform.
Apache:2.0.63 PHP:5.2.10 MYSQL:5.0.83

Everything so far seems to work perfectly besides tha t i cant see the Relationship Settings under MyAccount>Edit. The space is there but no settings/fields seem to appear.
I've looked at all the possible settings of drupal but so far havent found anything that could fix this. Perhaps i missed something?

Thanks!

Comments

sja1’s picture

Title: Relationship Settings under MyAccount>Edit is empty! » "Relationship Settings" fieldset in MyAccount>Edit is broken
Version: 6.x-1.0-rc2 » 6.x-1.x-dev

I have come across two problems relating to the Relationship Settings fieldset.

1: as noted above, if the administrator has not enabled any user editable settings, the fieldset still appears (completely empty) on every users account edit page.

2: if the administrator enables the "Allow users to turn off relationship messages " at admin/user/relationships/settings, the corresponding setting appears on the user account edit pages, but outside of the "Relationship Settings" fieldset.

Desired behavior:
1. If no user editable settings have been enabled, the "Relationship Settings" fieldset should simply not appear on user account edit pages.

2. Once user editable settings have been enabled, they should appear inside the Relationship Settings fieldset.

alex.k’s picture

Assigned: efp » Unassigned

Valid concerns, thanks. I have a feeling this has been raised in the issue queue before, perhaps the problem is back.

To the original poster, please make sure your users have the "maintain own relationships" permission, that there's at least one relationship type defined, and that the option to allow users to auto-approve is enabled.

intibiz’s picture

Check your Role access on relations type.
1. Edit relationship type
2. Role access fieldset, You may choose which roles are allowed to request this relationship. If none are selected, all roles are allowed. checked role to activate (authenticated user, administrator etc.)
3. Submit to save

you can go to edit user account and your relationship type will display on Relationship settings..

Michsk’s picture

kind of "irritating" bug...

efp’s picture

@sja1
1. i do rememer enabling a couple of things so it should be therer.
2. i had enabled that: Allow users to turn off relationship messages and that is visible and works fine.

@alex.k
The "maintain own relationships" has bin selected, there is one relationship type defined which is the Admin for a user.
And the option to allow users to auto-approve had bin enabled as well.

@intibiz
Sorry i dont exactly understand what you are asking me to do. Could you clearify on your post?

Michsk’s picture

efp, if you do not have to give users a option. you can unset the var for that form. (thats what i did).

function YOUTHEME_theme(){
  return array(
	'user_profile_form' => array(
      'arguments' => array('form' => NULL),
    ),
  );
}
function YOURTHEME_user_profile_form($form) {
  unset($form['user_relationships_ui_settings']);
  return drupal_render($form);
}
andrenoronha’s picture

function YOURMODULE_form_user_profile_form_alter(&$form, &$form_state) {
	unset($form['user_relationships_ui_settings']);
}
alex.k’s picture

Issue tags: +rc3block

.

alex.k’s picture