testlink和bugfree整合-bug缺陷单添加ubb的支持

testlink和bugfree整合-bug缺陷单添加ubb的支持
默认的bugfree在buginfo的显示上不支持ubb的,此次针对 显示 关于testlink的地址的ubb连接
1.JPG


修改代码 buginfo.php
原代码:
$TPL -> assign( " HistoryList " ,bugGetHistory($_GET[ " BugID " ])); 
改为
//  Assign history.
$bugGetHistorys  =  bugGetHistory($_GET[ " BugID " ]);
require_once(
" add-ons/cfg/stat-config.inc.php " );
foreach($bugGetHistorys as $bugGetHistorys_key 
=>  $bugGetHistorys_value){ 
    $bugGetHistorys[$bugGetHistorys_key][
" FullInfo " =  preg_replace( " /(http:\/\/[a-z0-9\.\/_]+)(lib\/execute.*)(testPlanId=\d+)/i " , " <a href=' " .$BugConfig[ " testlink_baseurl " ]. " $2$3' target='_blank'> " .$BugConfig[ " testlink_baseurl " ]. " $2$3</a> " ,$bugGetHistorys_value[ " FullInfo " ]);
    
break ;
}
$TPL
-> assign( " HistoryList " ,$bugGetHistorys); 

你可能感兴趣的:(testlink和bugfree整合-bug缺陷单添加ubb的支持)