Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
url: http://www.example.com/relationships/$uid/requested/cancel/$uid2?destination=relationships%2F5%2Frequests
The user's own name (vs. the requestee's name) is displayed on the cancel relationship request page. This is happening b/c user_relationships_pending_requested() is used to generate the cancel, approve and disapprove forms and the code always uses $relationship->requester. That doesn't work b/c in the former case, user == requester and in the latter cases, user == requestee. We need to put in some logic to set the value appropriately depending on case.
Comment | File | Size | Author |
---|---|---|---|
#1 | urconfirm.patch | 963 bytes | prfctns6@gmail.com |
Comments
Comment #1
prfctns6@gmail.com CreditAttribution: prfctns6@gmail.com commentedHere's a little patch I wrote.
You might want to use it, mote for mote.
Don't worry,
Be Happy!
[It's Friday afternoon! :-)]
Comment #2
sprsquish CreditAttribution: sprsquish commenteddone