Closed (fixed)
Project:
Commerce Bulk Product Creation
Version:
7.x-1.0-alpha2
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
4 Aug 2011 at 01:52 UTC
Updated:
18 Aug 2011 at 02:01 UTC
By default Drupal allows title length up to 255 characters.
In the database, that is the length for the product title and node title fields.
However, the commerce_bpc module doesn't set a 'maxlength' property on the form element to set the title, thus it defaults to 128 which is too short when including a bunch of field tokens in the title.
The attached patch fixes the issue and brings the title field up to 255 characters, the Drupal standard title length.
Thanks for the useful module.
DT
| Comment | File | Size | Author |
|---|---|---|---|
| commerce_bpc.forms_.inc_.title-maxlength.patch | 445 bytes | davidwhthomas |
Comments
Comment #1
sven.lauer commentedNice catch. I'll apply this for now, even though one might even want to set a larger maxlength, as the token names can easily be longer than their values.
Anyhow, the need to enter tokens for every field will go away shortly, so maybe for the future this is a moot point.
http://drupalcode.org/project/commerce_bpc.git/commit/7e788a5
Thanks!