Page 1 of 1
Custom-Fields lenght
Posted: 26 Jan 2017, 09:14
by web24
hi,
i can't find where i can change the number of characters for custom-fields.
for example:
i have a new textfield and now i want a detailed statement for this field but after about 55 characters is end.
how can i change the number to a higher level, so around 100.
thx
geri
Re: Custom-Fields lenght
Posted: 26 Jan 2017, 09:22
by atrol
Are you talking about the name of the field or the values that are entered?
Re: Custom-Fields lenght
Posted: 26 Jan 2017, 09:25
by web24
hi atrol,
only the name of the field!
thx
Re: Custom-Fields lenght
Posted: 26 Jan 2017, 09:59
by atrol
Custom field names are limited to 64 characters.
You would have to change database schema to change this.
Have also a look at the filter section of "View Issues" page to see that having very long names for custom fields is questionable in terms of the current screen layout.
Re: Custom-Fields lenght
Posted: 26 Jan 2017, 10:39
by web24
hi atrol,
i use html (<br>) to have a second row in the new custom field (it looks fine for us) and at the filter section it is no problem with the length.
the only thing at filter section is that the title can't handle the html and so the <br> is plain text.
can you explain me where in the database i have to change this limit?
i have searched but can't find it.
and another question is it planed for a future release to have instead of custom-field "date" a "calendar"?
thx
geri
Re: Custom-Fields lenght
Posted: 26 Jan 2017, 13:49
by atrol
web24 wrote:can you explain me where in the database i have to change this limit?
You would have to change field "name" of database table "mantis_custom_field_table"
Changing the database schema is just one step.
After that, some more minor changes might be needed.
Be aware that changing the database schema might introduce issues when upgrading to newer MantisBT versions.
The same applies to any other changes in original source code.
web24 wrote:is it planed for a future release to have instead of custom-field "date" a "calendar"?
This is a known feature request, see
https://www.mantisbt.org/bugs/view.php?id=8957
Re: Custom-Fields lenght
Posted: 27 Jan 2017, 07:22
by web24
hi atrol,
thank you for your detailed answer.
we have now a shorter statement for this field so we don't need to chanche code and database.
thx
geri