Closed (fixed)
Project:
Privatemsg
Version:
7.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Sep 2009 at 14:55 UTC
Updated:
19 Oct 2009 at 00:50 UTC
Jump to comment: Most recent file
Comments
Comment #1
litwol commentedComment #2
berdirI assume this was broken by my recent patch..
When debugging this, I found out that there are actually multiple bugs...
- The mentioned visibility issue. Happens because $recipient_list is overwritten by an empty value and then '#access' is set to FALSE
- blocked recipients are not removed from the form because the call was wrong (the block implementation assumes that the key is the uid)
- There was a notice regarding the recently added read_all flag when sending a new message.
- When all recipients were blocked, the current user was displayed as only recipient. The form should be hidden in that case.
Comment #3
berdirComment #4
naheemsays commentedlooks good to me - it works and the changes look sensible. the addition of $blocked also make the "reply to self" function work how it is meant to instead of being cheeky in its implementation.
Comment #5
mr.alinaki commentedPatch works for me. Thanks!
Comment #6
mr.alinaki commentedPatch works for preview button, but I can't "reply to myself".
Comment #7
naheemsays commentedok, it took me next to forever finding that bug. Attached patch should fix it. My modification:
as otherwise messages to self are broken when you are the only recipient.
Comment #8
litwol commentedneed review for #7. i'll commit it after next rtbc.
Comment #9
berdirTested, the change does fix the bug.
The change is required because the new code does remove the author as recipient unless (added by this patch) he is the only recipient.
Comment #10
litwol commentedcheers
Comment #11
litwol commentedoops
Comment #12
berdirPatch almost applied to D7, just the small change in pm_block_user had to be rerolled and I already fixed one thing (the read_all form element placement) in D7 while porting, it seems.
Comment #13
litwol commented