Custom Fields -enlarge size of possible Values

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
gilina_tp
Posts: 4
Joined: 28 Feb 2007, 03:36
Contact:

Custom Fields -enlarge size of possible Values

Post by gilina_tp »

Excuse me for my english...


What enlarge the amount a sign in user field.
Created the field. The Type Enumeration.
IN Possible Values- comes short place.


Mantis ver 1.0.6
gilina_tp
Posts: 4
Joined: 28 Feb 2007, 03:36
Contact:

up

Post by gilina_tp »

up
deboutv
Posts: 507
Joined: 15 Jan 2007, 14:31
Location: La Ciotat, FRANCE
Contact:

Post by deboutv »

Sorry I don't understand what you want.
Want more plugins to customize Mantis?
=> http://deboutv.free.fr/mantis/

Mantis: 1.1.0, 1.1.0a2
PHP: 5.0.4
SQL: MySQL 5.0.19
OS: Linux
foo
Posts: 5
Joined: 27 Sep 2007, 20:58

Post by foo »

I think I get what gilina_tp was asking for, as I just ran into this.

The 'possible_values' field is limited to 255 characters, in both the db schema and the HTML form element. I needed more than that, as I couldn't even get ten of the options I needed to fit.

My solution:
  1. Change mantis_custom_field_table.possible_values from type VARCHAR(255) to type TEXT.
  2. Edit line #69 of manage_custom_field_edit_page.php so that the maxlength attribute is reasonably large (several thousand, anyways).
This solved the problem for me in 1.1.0a4. However, after a bit of testing, I was reminded that Safari limits text input fields to 1024 characters. Firefox let me go as crazy as I wanted.

I'm all about clean UI, but c'mon guys - 255 characters is a little on short side for a field that is by definition meant to hold multiple values.
I would argue any enum/list-oriented fields should be reasonable large, variable-length data types by default.

Any chance that'll make it into the trunk?

-Foo
deboutv
Posts: 507
Joined: 15 Jan 2007, 14:31
Location: La Ciotat, FRANCE
Contact:

Post by deboutv »

If it is that, I have developped a plugin named LongCF to increase the size of the custom fields (and other things).
Want more plugins to customize Mantis?
=> http://deboutv.free.fr/mantis/

Mantis: 1.1.0, 1.1.0a2
PHP: 5.0.4
SQL: MySQL 5.0.19
OS: Linux
foo
Posts: 5
Joined: 27 Sep 2007, 20:58

Post by foo »

Sweet.

I just downloaded your import plugin earlier today, too. I'll have to give'er a whirl!

-Foo
Post Reply