Page 1 of 1
Custom Fields -enlarge size of possible Values
Posted: 21 Jun 2007, 07:19
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
up
Posted: 05 Jul 2007, 03:49
by gilina_tp
up
Posted: 05 Jul 2007, 06:45
by deboutv
Sorry I don't understand what you want.
Posted: 27 Sep 2007, 21:16
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:
- Change mantis_custom_field_table.possible_values from type VARCHAR(255) to type TEXT.
- 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
Posted: 27 Sep 2007, 21:33
by deboutv
If it is that, I have developped a plugin named LongCF to increase the size of the custom fields (and other things).
Posted: 27 Sep 2007, 21:44
by foo
Sweet.
I just downloaded your import plugin earlier today, too. I'll have to give'er a whirl!
-Foo