Custom field string is too short

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
abdaizs
Posts: 13
Joined: 10 Mar 2008, 08:32

Custom field string is too short

Post by abdaizs »

Hi All,

I have a problem.
I create an Enumeration list. By default, the value of the string can be max. 255 character lenght string.

How can I increase this lenght? Can I? :)


Thanks,
Zsolt
Buga
Posts: 74
Joined: 31 Mar 2008, 12:10

Re: Custom field string is too short

Post by Buga »

I think Mantis has no standard feature for this.

But I needed the same thing so I simply increased the length of the database field to 500.
To enter data in the Mantis interface I used Firefox Developer Plugin to disable the maxlength of all input fields. Alternativly you enter your value directly to the database.

I know thats only a simple workarround.
I hope soon there will be a feature from Mantis for this purpose.
abdaizs
Posts: 13
Joined: 10 Mar 2008, 08:32

Re: Custom field string is too short

Post by abdaizs »

But yes, it has!

But I found here the solution:

In mantis_custum_field_table the possible_value field from 255 char must change to text, and in php you must delete the maxvalue 255 lenght.
jpdoucet
Posts: 1
Joined: 04 Nov 2009, 20:11

Re: Custom field string is too short

Post by jpdoucet »

FYI, the php file is named "manage_custom_field_edit_page.php" and the line to change is

Code: Select all

<input type="text" name="possible_values" size="32" maxlength="255" value="<?php echo string_attribute( $t_definition['possible_values'] ) ?>" />
to

Code: Select all

<input type="text" name="possible_values" size="32" value="<?php echo string_attribute( $t_definition['possible_values'] ) ?>" />
Post Reply