Closed (fixed)
Project:
Drupal core
Version:
x.y.z
Component:
comment.module
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
29 May 2003 at 05:01 UTC
Updated:
31 May 2003 at 04:26 UTC
Comments are currently massively broken (albeit in a deeply trivial way).
I've sent a patch to Dries, but am opening this bug in the meantime in case anyone else spots it, so they realise it's being fixed.
For the impatient, here's the patch:
Index: comment.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/comment.module,v
retrieving revision 1.129
diff -u -r1.129 comment.module
--- comment.module 26 May 2003 19:49:01 -0000 1.129
+++ comment.module 29 May 2003 04:57:56 -0000
@@ -160,6 +160,10 @@
function comment_preview($edit) {
global $user;
+ foreach ($edit as $key => $value) {
+ $comment->$key = $value;
+ }
+
/*
** Attach the user and time information:
*/
@@ -359,7 +363,7 @@
print "<a name=\"$comment->cid\"></a>\n";
if ($visible) {
- $comment->comment = check_output($comment);
+ $comment->comment = check_output($comment->comment);
theme("comment", $comment, $links);
}
else {
Comments
Comment #1
al commentedComment #2
al commentedVerified working with today's CVS. CLOSED.