comment_form is now spelled comment-form. This makes jscalendar_form_alter() cause a whitescreen when a user adds a comment.

This little patch does it - took me a while this bugger :)

http://drupal.org/node/106351

CommentFileSizeAuthor
jscalendar-comment-form.patch775 bytesalex_b

Comments

nedjo’s picture

Assigned: Unassigned » nedjo
Status: Reviewed & tested by the community » Fixed

Thanks for flagging this issue and for looking into it.

It turned out that the change made to comment-form was not the issue. I'd simply failed to test the code before applying the patch that added the form_alter. I needed to add a test to ensure that the admin form element was set--it's only set for users with the correct permissions, and even then only when editing existing comments, not when originally submitting one. (The node version already had the correct tests.)

Anonymous’s picture

Status: Fixed » Closed (fixed)