Problem/Motivation
The comment subject field limit of 64 characters is too short.
Steps to reproduce
- Do a Standard Drupal 11 installation. Make sure the Comment module is enabled
- Create a node of type Article
- View its page and post a comment. Try to fill more than 64 characters in the subject
- See that the field is limited. No more than 64 characters can be inserted
Proposed resolution
Increase the comment subject column from VARCHAR(64) to VARCHAR(255)
Remaining tasks
- [✓] - Fix & MR
- [ ] - Tests
User interface changes
The maximum length for a comment subject now is 255 characters.
Introduced terminology
None
API changes
None
Data model changes
The maximum length for a comment subject now is 255 characters.
Release notes snippet
NA
Original report by @mkpaul
For multibyte languages (in this case malayalam), the length of the comment subject line is too short and truncates the subject line. A fix to increase the length of subject fiels is as follows:
The length of th esubject line is defined in the comment table:
subject varchar(64) NOT NULL default '',
You can use phpmyqdmin or the mysql commandline to change this to something higher. Maximum is 255.
You will maybe also need to increase the number of chars you can put into the forms. Look for form_textfield in comment.module.
This problem exists for 4.6.* versions also.
Thanks Gerhard Killesreiter for the above fix!