Page 1 of 1

Custom field string is too short

Posted: 05 Jun 2009, 07:40
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

Re: Custom field string is too short

Posted: 05 Jun 2009, 10:56
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.

Re: Custom field string is too short

Posted: 06 Jun 2009, 08:44
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.

Re: Custom field string is too short

Posted: 04 Nov 2009, 20:15
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'] ) ?>" />