Hi.
After creating view to list node comments I noticed that edit and delete links are wrong.
For Delete link views prints out link as comment/delete/29 (that gives me 404 error) instead of comment/29/delete.
And for Edit link it simply printouts comment/29 (no /edit at all).
Also when Edit link is included notice is thrown
Undefined property: stdClass::$status in comment_access() (line 1427 of modules/comment/comment.module).
Delete link is simple enough to solve. In views_handler_field_comment_link_delete.inc just change line 16 from
$this->options['alter']['path'] = "comment/delete/" . $values->{$this->aliases['cid']};
to
$this->options['alter']['path'] = "comment/" . $values->{$this->aliases['cid']} . "/delete";
However Edit link I was unable to solve due to my (current :) lack of knowledge of Drupal module development.
Comments
Comment #1
dawehnerSee #1037112: Wrong Edit comments link
Please be free and search the issue queue next time :)
Comment #2
metalinspired commentedMy bad :)