Only subject and date in lists? No author, user picture, etc.

Coyote - January 15, 2009 - 09:56
Project:Privatemsg
Version:6.x-1.0-rc2
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:duplicate
Description

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.

#1

Berdir - January 15, 2009 - 15:26
Status:active» duplicate

Have 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.

 
 

Drupal is a registered trademark of Dries Buytaert.