Hi,
I get the following error being reported to many of my users:
field_select_publications cannot be longer than 128 characters but is currently 172 characters long
field_select_publications is just a normal node reference to a 'biblio' type. Drupal 5.7 has 255 characters for titles not 128 this limitation was changed in the database, the node reference GUI needs to reflect this change too. The current fix I have for my users is to just delete all the text in the node reference auto lookup box apart from [nid:xxx] which works, but is very unintuitive to a bunch of academics with a limited computing background.
I could take a look at fixing this myself, but I assume someone familiar with CCK could do it a lot quicker and submit it to CVS straight away. I am reluctant to make local changes to our site because in the future someone might update the modules and lose my edits.
Thanks in advance for any help you can give.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | cck-DRUPAL-5-274682-1.patch | 1.74 KB | samuelsov |
Comments
Comment #1
samuelsov commentedI have the same error with module biblio having node with title longer than 128 and cck node referrence on biblio node.
Here is a patch that solves the problem for me.
Comment #2
artofeclipse commentedI am facing the same scenario in pressflow and brightcove module, is there any changes on this issue for drupal6 or pressflow.
Comment #3
wszxg8866 commented关于输入的字提示超过了128个,主要是因为form表单中采用了系统默认的输入长度
建议可进行如下修改
找到对应的form表单
例如关于quiz的 选择题中选项的长度不能超过128个字 在multichoice.classes.inc 中找到如下form表单然后 定义一下输入的字符串长度
'#maxlength' => 300,
实例如下:
$form['alternatives'][$i]["answer"] = array(
'#type' => 'textfield',
'#title' => t('Alternative !i', array('!i' => ($i+1))),
'#default_value' => $short['answer'],
'#maxlength' => 300,
'#required' => $i < 2,
);