Comment preview has bad links for "parent" and "reply"

samo - July 7, 2005 - 13:56
Project:Drupal
Version:5.5
Component:comment.module
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

Steps to replicate on drupal.org as an authenticated user:

1) go to piece of content that allows comments
2) fill out comments fields ==> preview
3) in the top preview, there will be two links to "parent" and "reply"
--jpg attached

the "parent" link points to: http://drupal.org/comment/reply#comment-
the "reply" link points to itself: http://drupal.org/comment/reply/26423

AttachmentSize
comment-preview.jpg16.97 KB

#1

samo - July 7, 2005 - 14:31

on my install I am changing this line in comment_preview:

$output .= theme('comment_preview', $comment, theme('links', module_invoke_all('link', 'comment', $comment, 1)));

to

$output .= theme('comment_preview', $comment);

#2

moshe weitzman - July 26, 2005 - 18:23
Status:active» fixed

#3

Anonymous - August 9, 2005 - 21:47

#4

Anonymous - August 23, 2005 - 22:00

#5

Anonymous - August 23, 2005 - 22:00

#6

Uwe Hermann - August 23, 2005 - 22:54
Version:» 4.6.0
Status:fixed» closed

#7

lisa - March 29, 2006 - 10:43
Version:4.6.0» 4.6.6
Status:closed» active

I don't think this bug is fixed. I am using Drupal 4.6.6 and have the same problem as described by samo.

I go to a piece of content that allows comments - for example forum, or story. I fill out the comments fields and click preview. In the top preview, I see links to parent - edit - reply

Parent link points to ?q=comment/reply#comment- which takes me back to the home page.

Edit link points to ?q=comment/edit/ and clicking it results in the following error messages:

warning: Missing argument 1 for comment_edit() in mysite/modules/comment.module on line 357.

warning: Cannot modify header information - headers already sent by (output started at mysite/includes/common.inc:384) in mysite/includes/common.inc on line 99.

Reply link points to ?q=comment/reply/2 and takes me to a page where I can write a new reply to the first reply which was only previewed, never saved.

It seems that these links should not be visible or at least not active in the preview window.

Can anyone help?

#8

mjolley@buy-hot.com - May 17, 2006 - 03:57
Title:Comment preview has bad links for "parent" and "reply"» Possible related problem

This is the only comment.module issue I've found that might relate to what I and some others have found. Maybe you guys know whether this is related. There's a problem in comment.module that affects replies to nodes but not replies to other comments. I've posted all my findings here: http://drupal.org/node/63554

#9

spatz4000 - May 17, 2006 - 12:36
Title:Possible related problem» Comment preview has bad links for "parent" and "reply"

Possible related problem is not at ALL descriptive.

#10

mjolley@buy-hot.com - May 17, 2006 - 22:20

Sorry, I didn't realize I was changing the title of the whole thing, just my post.

#11

magico - August 21, 2006 - 17:57
Version:4.6.6» 4.6.9

This can be changed in a theme by overriding the comment.tpl.php.
Anyway, I think it's still a bug that should also be checked against HEAD.

#12

spatz4000 - December 11, 2007 - 21:52
Version:4.6.9» 5.5
Status:active» fixed

I don't see this behavior in my 5.5 install. marking as fixed.

#13

Anonymous - December 25, 2007 - 22:01
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.