limiting title of faq content type to 255

hapydoyzer - September 18, 2008 - 07:08
Project:Longer Node Titles
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:needs review
Description

Summary:

The lenght of "title" form field (only field, not column in db) in faq content type (provided by faq module) not limited to 255 or 128 characters.
This is done by additional table with "displayed" titles. Maxlenght of original "title" columns in node and node_revisions tables are not altered.

When both modules are installed, "longer node titles" wins and set $form['title']['#maxlenght'] to 255
Actually "title" field in faq content type limited only by "text" db type.

Reproducible: Always

Steps to reproduce:

  1. Install "faq" module
  2. Install "Longer Node Titles" module
  3. Create question (faq content type) with lenght more than 255 symbols

Expected Results:

"Longer Node Titles" did not touch #maxlenght in "title" if it is faq content type.

Actual Results:

Error "Question cannot be longer than 255 characters but is currently XXX characters long." appeared and node not saved.

Path attached.
It disables setting of #maxlenght in faq edit forms.

Sorry for my bad English ;)

AttachmentSize
longer_titles-nofaq.patch432 bytes

#1

NancyDru - May 12, 2009 - 18:47

I believe Stella fixed this.

 
 

Drupal is a registered trademark of Dries Buytaert.