[SOLVED] Can CustomField (Text Area) be greater than 255 ?

LATEST Official version.
Questions and discussions - NO ISSUES
FOR ISSUES => http://mantis.testlink.org

Moderators: Amaradana, TurboPT, TL Developers

Post Reply
vedran
Advanced user
Posts: 15
Joined: Sat Mar 05, 2011 12:11 pm

[SOLVED] Can CustomField (Text Area) be greater than 255 ?

Post by vedran »

Hi
I must ask this even this is answered on TL 1.8 (http://www.teamst.org/forum/viewtopic.php?f=9&t=2836).
This workaround doesn't work on TL 1.9.1.
Any suggestion?
TNX
vedran
Advanced user
Posts: 15
Joined: Sat Mar 05, 2011 12:11 pm

Re: Can CustomField (Text Area) be greater than 255 ?

Post by vedran »

I have found solution for this issue. One must read an configuration manual and do some adjustment of JavaScript. Tnx
sangeeta
TestLink user
Posts: 5
Joined: Fri Dec 04, 2009 12:15 pm

Re: Can CustomField (Text Area) be greater than 255 ?

Post by sangeeta »

Hi ,
i am also trying the same on TL 1.9 can you please give some more inputs to which files and which adjustment of JavaScript.

Tnx in advance
sangeeta
tom1
Advanced user
Posts: 23
Joined: Thu Nov 11, 2010 4:40 pm

Re: Can CustomField (Text Area) be greater than 255 ?

Post by tom1 »

I also looking for a solution to increase the size of the text area field.
TEXTAREA_MAX_SIZE in lib/functions/cfield_mgr.class.php is not used in 1.9.3.
Any ideas?
fman
Member of TestLink Community
Posts: 3123
Joined: Tue Nov 15, 2005 7:19 am

Re: Can CustomField (Text Area) be greater than 255 ?

Post by fman »

Please always:

1. search on our mantis site REMOVING ALL STATUS FILTERS
2. give a look to following files

config.inc.php
const.inc.php

on const.inc.php
/* [CUSTOM FIELDS] */

// /**
// * Custom field constrains for HTML inputs use values to created to get/show custom field contents
// * <ul>
// * <li>for string,numeric,float,email: size & maxlenght of the input type text.</li>
// * <li>for list,email size of the select input.</li>
// * </ul>
// */
// $tlCfg->gui->custom_fields->sizes = array(
// 'string' => 50,
// 'numeric'=> 10,
// 'float' => 10,
// 'email' => 50,
// 'list' => 1,
// 'multiselection list' => 5,
// 'text area' => array('cols' => 40, 'rows' => 6)
// );


and you can see on cfield_mgr class that this values are used:
/**
* Class constructor
*
* @param resource &$db reference to the database handler
*/
function __construct(&$db)
{
parent::__construct();

$this->db = &$db;
$this->tree_manager = new tree($this->db);

$cfConfig = config_get('custom_fields');
$this->sizes = $cfConfig->sizes;


we are going to create some quick config guide on future
tom1
Advanced user
Posts: 23
Joined: Thu Nov 11, 2010 4:40 pm

Re: Can CustomField (Text Area) be greater than 255 ?

Post by tom1 »

Thanks, now it works.
Post Reply