mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-21 12:19:56 +09:00
issue status 변경 추가
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4861 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
f132c7db7d
commit
c3cb299b6f
7 changed files with 64 additions and 10 deletions
|
|
@ -7,6 +7,13 @@
|
|||
|
||||
require_once(_XE_PATH_.'modules/issuetracker/issuetracker.item.php');
|
||||
|
||||
function _compare($a, $b)
|
||||
{
|
||||
if(!$a->date || !$b->date) return 0;
|
||||
return strcmp($a->date, $b->date) * -1;
|
||||
}
|
||||
|
||||
|
||||
class issuetrackerModel extends issuetracker {
|
||||
var $oSvn = null;
|
||||
|
||||
|
|
@ -360,6 +367,7 @@
|
|||
else return 0;
|
||||
}
|
||||
|
||||
|
||||
function getChangesets($module_srl, $enddate = null, $limit = 90)
|
||||
{
|
||||
if(!$enddate)
|
||||
|
|
@ -375,10 +383,37 @@
|
|||
debugPrint($output);
|
||||
return array();
|
||||
}
|
||||
else
|
||||
|
||||
$solvedHistory = array();
|
||||
$output2 = executeQueryArray("issuetracker.getHistories", $args);
|
||||
foreach($output2->data as $history)
|
||||
{
|
||||
return $output->data;
|
||||
$hist = unserialize($history->history);
|
||||
$h = array();
|
||||
if(!is_array($hist)) continue;
|
||||
$res = "";
|
||||
$bFirst = true;
|
||||
foreach($hist as $key => $val) {
|
||||
if($bFirst) { $bFirst = false; }
|
||||
else { $res .= "<br />"; }
|
||||
if($val[0]) $str = Context::getLang('history_format');
|
||||
else $str = Context::getLang('history_format_not_source');
|
||||
$str = str_replace('[source]', $val[0], $str);
|
||||
$str = str_replace('[target]', $val[1], $str);
|
||||
$str = str_replace('[key]', Context::getLang($key), $str);
|
||||
$res .= $str;
|
||||
}
|
||||
$obj = null;
|
||||
$obj->date = $history->regdate;
|
||||
$obj->type = "i";
|
||||
$obj->message = $res;
|
||||
$obj->target_srl = $history->target_srl;
|
||||
$obj->author = $history->nick_name;
|
||||
$output->data[] = $obj;
|
||||
}
|
||||
usort($output->data, _compare);
|
||||
|
||||
return $output->data;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue