Get help from other users here.
Moderators: Developer , Contributor
abdaizs
Posts: 13 Joined: 10 Mar 2008, 08:32
Post
by abdaizs » 05 Jun 2009, 07:40
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
Post
by Buga » 05 Jun 2009, 10:56
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
Post
by abdaizs » 06 Jun 2009, 08:44
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
Post
by jpdoucet » 04 Nov 2009, 20:15
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'] ) ?>" />