Closed (duplicate)
Project:
Drupal core
Version:
4.7.0-beta2
Component:
comment.module
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Dec 2005 at 17:20 UTC
Updated:
25 Dec 2005 at 07:35 UTC
Jump to comment: Most recent file
Comments
Comment #1
svemir commentedThe problem seems to be that function "comment_form_validate" receives $form_values by value (not as a reference.) It then calls "comment_validate" on $form_values. Validate correctly calculates the timestamp from the date, but since form_values came in as a copy, the timestamp never gets back into the original array. Patch attached.
Comment #2
Cvbge commentedPlease see also http://drupal.org/node/40762 it seems it fixes this too (but I'm not sure?)
Comment #3
Wesley Tanaka commentedComment #4
Wesley Tanaka commentedindeed a dupe of http://drupal.org/node/40762
by the way, comments i've heard from chx led me to believe that validate methods (at least the ones in core) shouldn't be changing form values.