Hi,
We need to add a custom field type as URL where we can give the link as refererence to MR we create in another tool. I am trying to find which part of the code creating these custom fields but I couldn't get it.
config.inc.php has the list for custom fields but not able to track where they get added actually
Can anybody please help me to add URL as a field?
Thanks,
Surya
Add URL as custom field type
-
- TestLink user
- Posts: 3
- Joined: Fri Mar 06, 2009 2:36 pm
-
- TestLink user
- Posts: 3
- Joined: Fri Mar 06, 2009 2:36 pm
Solution
Hold off on reporting the bug.
If you want to use a URL in a custom field then set it to type string and turn on html_make_links.
I have 1.8 RC 2 and 5 and both of them have it enabled by default. I also created a custom field for links in my Test Cases and it's working just fine.
/**
* String checking and conversions
* Allow automatically convert www URLs and email adresses into clickable links
* used by function string_display_links() for example by custom fields.
* Valid values = ENABLED/DISABLED.
**/
$tlCfg->html_make_links = ENABLED;
MArk B.
If you want to use a URL in a custom field then set it to type string and turn on html_make_links.
I have 1.8 RC 2 and 5 and both of them have it enabled by default. I also created a custom field for links in my Test Cases and it's working just fine.
/**
* String checking and conversions
* Allow automatically convert www URLs and email adresses into clickable links
* used by function string_display_links() for example by custom fields.
* Valid values = ENABLED/DISABLED.
**/
$tlCfg->html_make_links = ENABLED;
MArk B.