Loading...
 
Skip to main content

Categories get name truncated above 99 chars

Status
Open
Subject
Categories get name truncated above 99 chars
Version
5.x
Category
  • Usability
Feature
Category
Submitted by
Dominique Meeùs
Lastmod by
Dominique Meeùs
Rating
(0)
Description

It is possible to type a long name of category, but the name gets truncated at 99 or 100 chars without warning. If the length of categories’ names is limited to 99, the field to enter categories should be limited to 99 also. Maybe the screen should say "max 99" beside the text entry zone.

Uploading a csv with a name longer than 99 gives an error message. The category is created but the name gets truncated. Children categories, having the category with long name for parent, are not created.

It makes impossible to upload the UDC (Universal Decimal Classification) Summary: the first category for example, "0 SCIENCE AND KNOWLEDGE. ORGANIZATION. COMPUTER SCIENCE. INFORMATION. DOCUMENTATION. LIBRARIANSHIP. INSTITUTIONS. PUBLICATIONS" is 127 chars.
In the UDC Summary, the longer entry seems to be 173 chars. It seems to me reasonable to allow for categories with names of 256 chars, even if shorter names are recommended.

Solution
I could try to modify the lengths in the database. I do not know whether the length does a difference for the program, or whether changing the lengths in the database would break the program.
Workaround

Truncate the names beforehand and put the full names in the description.

(This will not do for me: I intended to use English as names and put in the description the two language variants French and Dutch. I went to see the database and saw that the description is rather limited too. If I have to use truncated English as name and put English + French + Dutch in the description, I will sometimes reach the limit of the description too.

Importance
5
Priority
25
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
3466
Created
Saturday 03 July, 2010 08:10:17 UTC
by Dominique Meeùs
LastModif
Saturday 03 July, 2010 21:05:26 UTC


Show PHP error messages