View Issue Details

IDProjectCategoryView StatusLast Update
0009604mantisbtcustom fieldspublic2010-04-23 23:22
Reportervzw614 Assigned Tovboctor  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionduplicate 
Product Version1.1.1 
Summary0009604: Size of text box for Possible Values limited to 255 chars
Description

When creating/editing a custom field you can specify the Max. Length but can not enter any more than 255 characters in the Possible Values text box because it's size is hard coded to lenght of 255.

From manage_custon_field_edit_page.php

    <tr <?php echo helper_alternate_class() ?>>
        <td class="category">
            <?php echo lang_get( 'custom_field_possible_values' ) ?>
        </td>
        <td>
            <input type="text" name="possible_values" size="32" maxlength="255" value="<?php echo string_attribute( $t_definition['possible_values'] ) ?>" />
        </td>
    </tr>

This should use the Max. Length as the maxlength for the actual text box.

TagsNo tags attached.

Relationships

duplicate of 0007380 closedatrol possible_values field in mantis_custom_field_table is too short. 

Activities

ryandesign

ryandesign

2008-09-04 16:56

reporter   ~0019306

Perhaps the field has an absolute maximum length of 255 due to the database storage backend?

vzw614

vzw614

2008-09-05 08:57

reporter   ~0019316

Then why can you specify the Max. Length of the custom field?

I changed the maxlength for the text box in the php file and it works correctly so the 255 is not a limit of the database.

vzw614

vzw614

2008-09-08 15:28

reporter   ~0019336

I think this is actually related to 0005258 but it looks like that issue was only resolved for MySQL. I am noticing the same issue using MS SQL Server. The maximum length of the possible values for any type of custom field is limited to 255 characters.

After changing the size of the database field and the text box you can enter more than 255 characters for the possible values and it saves correctly to the database. but when the value of that field is read from the database it is truncated to 255 characters.