Hello,
There is some issue when you go to the User account edit page, and there is only one relation that is automatically accepted, the field to select the automatic acceptation is still there in the account, but there is nothing to select.
I think it should either hide this field, or maybe show a greyed out box with the automatic relation. Cause now, you go to your user page and you see this text :
Automatically approve the following relationship requests:
Check off the types of relationships you'd like to automatically approve.
Problem is that under it, there is nothing to choose, so it's confusing.
I think solution is to say that if only one relation exists AND that relation is automatically accepted, then this should just not be shown to the user.
Unfortunately, I don't really know PHP, so can't really provide any patches.
I guess the larger idea here is that this module needs to handle One way automatic relations. But this means "real" one way, so the requestee should not have the right to remove the relation, etc. All my issues at this point are related to this type of relations not really handled...
Do you think you would implement support for this kind of relations eventually??
thanks,
Patchak
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | ur-453090-v1.patch | 2.27 KB | kars-t |
Comments
Comment #1
MisterSpeed commentedComment #2
bob jk commentedComment #3
alex.k commentedNot sure why this was marked fixed
Comment #4
MisterSpeed commentedHi,
alex.k Can you please explain in details what the actual issue is, I am little bit confused
Comment #5
alex.k commented@63reasons I think original poster means that when you have just one relationship type defined, and it is set to not require approval, user profile edit page shows an empty fieldset asking which relationship types should be automatically approved - because there are no types that require approval.
@patchak please provide us screenshots of user profile page showing the problem
Comment #6
patchak commentedhey guys, yes this is exactly the issue. To recreate, simply create a relation type where approval is not required (set to auto approve). If this is the only relation on the site, the in the user/%/edit page you will find the option to "select the relations to approve automatically".
Since the only relation on that site is set to auto approve, that section is empty. This is a problem since it's really confusing to see this if there is nothing you can do.
Comment #7
alex.k commentedFixed, committed in http://drupal.org/cvs?commit=230910.
Comment #9
kars-t commentedWe had a case where the fieldset was empty even with this patch. I believe it is much better to onyl build the fieldset if $options is not empty. This did solve our problems:
Before
Patched
Comment #10
alex.k commented#558800: "Relationship Settings" fieldset in MyAccount>Edit is broken is a duplicate of this.
Comment #11
alex.k commentedCommitted in http://drupal.org/cvs?commit=279482 thanks Kars-T!