Mantis Bugtracker          
testlink.org

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0007636TestLinkCustom fieldspublic2016-08-09 08:222016-08-09 09:08
ReporterNOC 
Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusnewResolutionopen 
PlatformOSOS Version
Product Version1.9.14 (2015 Q3) 
Fixed in Version 
Summary0007636: Custom field size does not increase in the UI also changed in configuration
Description- Facing the issues that no further entries could be added to a multi-selection list I was happy to find 0002791 and the possibility to increase the custom field size by configuration.

- So I increased the size in the configuration ("$tlCfg->custom_fields->max_length = 3900;") but in the UI I still could not add any further entries.

- Investigating html-code, I found that the input field itself was limited: "input ... maxlen="255"".

- Finally found the location in cfieldsEdit.tpl. There I replaced

"
        <tr id="possible_values" style="display:{$display_style};">
            <th style="background:none;">{$labels.possible_values}</th>
            <td>
                <input type="text" id="cf_possible_values"
                                   name="cf_possible_values"
                               size="{#CFIELD_POSSIBLE_VALUES_SIZE#}"
                               maxlength="{#CFIELD_POSSIBLE_VALUES_MAXLEN#}"

                                   value="{$gui->cfield.possible_values}" />
            </td>
        </tr>
"

with

"
        <tr id="possible_values" style="display:{$display_style};">
            <th style="background:none;">{$labels.possible_values}</th>
            <td>
                <input type="text" id="cf_possible_values"
                                   name="cf_possible_values"
                               size="{#CFIELD_POSSIBLE_VALUES_SIZE#}"
                               maxlength="{$tlCfg->custom_fields->max_length}"
                                   value="{$gui->cfield.possible_values}" />
            </td>
        </tr>"

which means to take the limitation from the limitation rather from the static "input_dimensions.conf".
TagsNo tags attached.
Database (MySQL,Postgres,etc)Postgresql
Browserall
PHP VersionN/A
TestCaseID
QA Team - Task Workflow StatusTBD
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2016-08-09 08:22 NOC New Issue
2016-08-09 09:08 fman QA Team - Task Workflow Status => TBD
2016-08-09 09:08 fman Description Updated View Revisions



Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker