Search found 8 matches

by rkorinth
Fri Feb 29, 2008 4:07 pm
Forum: Installation and configuration
Topic: Customfield as textarea - limited to 255
Replies: 2
Views: 4492

Yep, fair enough, I can very much understand your point. Pretty much the answer that I expected. We'll work around it.

Thanks a lot for your great work and have a very enjoyable weekend.
by rkorinth
Fri Feb 29, 2008 2:58 pm
Forum: Installation and configuration
Topic: Customfield as textarea - limited to 255
Replies: 2
Views: 4492

Customfield as textarea - limited to 255

Hi there, when I use the textarea as a customfield there is a limitation of 255 characters. Would it be possible to allow more characters? Since we are planning to use textareas there is a reasonable chance that users will exceed the limit. Currently the software will cut off extra characters withou...
by rkorinth
Fri Feb 29, 2008 1:03 pm
Forum: Installation and configuration
Topic: Customfield as textarea - only first 2 chars arrive in dbase
Replies: 7
Views: 10200

So that'll appear in one of the next releases automatically? We will be keen to upgrade to the new version once this is fixed.

True - trim() is not more than a workaround.
by rkorinth
Fri Feb 29, 2008 11:20 am
Forum: Installation and configuration
Topic: Customfield as textarea - only first 2 chars arrive in dbase
Replies: 7
Views: 10200

I just managed to drag a colleague with some good PHP knowledge to my screen. He suggested adding a trim to the following line:

$value = $type_and_value['cf_value'];

becomes

$value = trim($type_and_value['cf_value']);

The problem then disappears.
by rkorinth
Fri Feb 29, 2008 10:58 am
Forum: Installation and configuration
Topic: Customfield as textarea - only first 2 chars arrive in dbase
Replies: 7
Views: 10200

I added a few more echo statements to zoom into the problem. Surprisingly the length of the string turns out to be 272 where I was only expecting 20. $this->max_length_value is 255 as set at the top of the file. So the substr in the if statement is executed. When I check $value after the substr has ...
by rkorinth
Fri Feb 29, 2008 10:36 am
Forum: Installation and configuration
Topic: Customfield as textarea - only first 2 chars arrive in dbase
Replies: 7
Views: 10200

Sorry, my mistake. I think I saved the wrong file. echo($sql); is working now. Result is: UPDATE cfield_design_values SET value=' 123' WHERE field_id=1 AND node_id=3 UPDATE cfield_design_values SET value='12345678901234567890' WHERE field_id=2 AND node_id=3 The second statement is for a customfield ...
by rkorinth
Fri Feb 29, 2008 10:32 am
Forum: Installation and configuration
Topic: Customfield as textarea - only first 2 chars arrive in dbase
Replies: 7
Views: 10200

I have located cfield_mgr.class and the method design_values_to_db() as the relevant place to check the sql statement. So I put in echo($sql); right before the query is executed. I was hoping to see the sql statement in my browser - but no such luck. Not being a PHP expert by any account I'm not sur...
by rkorinth
Wed Feb 27, 2008 3:03 pm
Forum: Installation and configuration
Topic: Customfield as textarea - only first 2 chars arrive in dbase
Replies: 7
Views: 10200

Customfield as textarea - only first 2 chars arrive in dbase

Hi there. We have just started playing with your testcase tracker. Very good impression so far. We are using MS SQL Server 2005 as database server and version 1.7.4 of TestLink. The admin has created a customfield named Precondition for testcases -> looks fine on the testcase editor. I have created ...