Broken comment and edit comment links

opalescent - August 20, 2009 - 22:27
Project:Workspace
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

Greetings

I've noticed that when listing user comments, the edit link in the operations column was missing, except for user having the "administer comments" permission. But basically in Drupal an authenticated user can edit his comments until they get a reply to.
I've found that in the workspace_build_rows() function a call to comment_links() is made but the $comment object is missing the $row->uid information. So just assigning all $row attributes to $comment for more semantic does the job.

The comment link is broken as well, only pointing to the node URL, and missing the anchor part. I guess the problem come from the params array in the link l() function.

Fixed with the following modifications.

AttachmentSize
workspace.diff1.8 KB
 
 

Drupal is a registered trademark of Dries Buytaert.