Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 300511

comment subject line is too short for multibyte languages

$
0
0

Problem/Motivation

The comment subject field limit of 64 characters is too short.

Steps to reproduce

  1. Do a Standard Drupal 11 installation. Make sure the Comment module is enabled
  2. Create a node of type Article
  3. View its page and post a comment. Try to fill more than 64 characters in the subject
  4. 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!


Viewing all articles
Browse latest Browse all 300511

Trending Articles


Download: Don Kingston ft General Kanene – Landlord(Prod by Great Pro)


Neem Baba Extra Questions Answer Class 6 English Poorvi


Deceased’s neighbours puzzled


CVP measurement


Practice Sheet of Right form of verbs for HSC Students


The Old Stag Class 4 Extra Questions MCQ English Chapter 5


Shaun Waring – Buxton


FREE BMW HUTOOLS 2.6 PRE


Verna Mae Skarsten


Mahakal Attitude Status



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>