Closed (duplicate)
Project:
Privatemsg
Version:
6.x-1.0-rc2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Jan 2009 at 09:56 UTC
Updated:
15 Jan 2009 at 15:26 UTC
On the private messages view page, it is only listing the subject and date the message was sent.
The theme function theme_privatemsg_message_row() seems to assume that an ins_new, author, subject, and timestamp will make their way to the function, but when I grab a dump of $row, it contains only:
$row = Array
(
[thread_id] => 3
[subject] => My test subject
[timestamp] => 1232004328
[is_new] => 1
)
Looking at the query used, it doesn't appear to be asking for anything else. All it's going for is:
SELECT pmi.thread_id, MIN(pm.subject) as subject, MAX(pm.timestamp) as timestamp, MAX(pmi.is_new) as is_new FROM {pm_message} pm INNER JOIN {pm_index} pmi ON pm.mid = pmi.mid WHERE (pmi.uid = 1) AND (pmi.deleted = 0) GROUP BY pmi.thread_id ORDER BY is_new desc, timestamp DESC
Looks like there would need to be a join to the user's table, to get username, or at least a return of the uid of the author so that a theme call or something could be made.
Comments
Comment #1
berdirHave a look at #324389: Show author(s) when viewing inbox, please test the patch and report if it does work for you.
I'm closing this as a duplicate, but thanks for reporting.