Closed (duplicate)
Project:
Drupal core
Version:
8.0.x-dev
Component:
comment.module
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 May 2012 at 08:56 UTC
Updated:
29 Jul 2014 at 20:43 UTC
Jump to comment: Most recent file
Comments
Comment #1
andyhu commentedComment #2
sanchi.girotra commentedAndy,
I did the same thing that you mentioned but have't got any error.
Please find the attached file.
Comment #3
devin carlson commentedI've also been able to duplicate this.
The comment module assumes that a comment will have a body field in a couple of places: once in the comment submit function to try and generate a comment subject from the body field and once on the administration page to add title text to links.
The attached patch adds a check to ensure that the body field is available before attempting to use it and also adds a test which deletes the comment body field from the article content type and then attempts to post a comment.
I'll forward-port the patches to D8 if these come back green+red.
Comment #5
devin carlson commentedAnd the same changes for D8.
Comment #7
devin carlson commentedThis is a duplicate of #1038652: Notices in comment_submit() and comment_admin_overview() when body field does not exist or is not required.