Merge branch 'master' of https://gitlab.zcorp.cc/easycorp/zentaopms into importExport
This commit is contained in:
@@ -28,7 +28,7 @@ $config->task->editor->pause = array('id' => 'comment', 'tools' => 'simpleToo
|
||||
|
||||
$config->task->removeFields = 'objectTypeList,productList,executionList,gitlabID,gitlabProjectID,product';
|
||||
$config->task->exportFields = '
|
||||
id, execution, module, story,
|
||||
id, execution, module, story, fromBug,
|
||||
name, desc,
|
||||
type, pri,estStarted, realStarted, deadline, status,estimate, consumed, left,
|
||||
mailto, progress, mode,
|
||||
|
||||
@@ -2083,7 +2083,11 @@ class task extends control
|
||||
|
||||
/* Get related objects id lists. */
|
||||
$relatedStoryIdList = array();
|
||||
foreach($tasks as $task) $relatedStoryIdList[$task->story] = $task->story;
|
||||
foreach($tasks as $task)
|
||||
{
|
||||
$relatedStoryIdList[$task->story] = $task->story;
|
||||
$relatedBugIdList[$task->fromBug] = $task->fromBug;
|
||||
}
|
||||
|
||||
/* Get team for multiple task. */
|
||||
$taskTeam = $this->dao->select('*')->from(TABLE_TEAM)
|
||||
@@ -2190,6 +2194,7 @@ class task extends control
|
||||
}
|
||||
}
|
||||
|
||||
$bugs = $this->loadModel('bug')->getByList($relatedBugIdList);
|
||||
foreach($tasks as $task)
|
||||
{
|
||||
if($this->post->fileType == 'csv')
|
||||
@@ -2203,6 +2208,8 @@ class task extends control
|
||||
/* fill some field with useful value. */
|
||||
$task->story = isset($relatedStories[$task->story]) ? $relatedStories[$task->story] . "(#$task->story)" : '';
|
||||
|
||||
$task->fromBug = empty($task->fromBug) ? '' : "#$task->fromBug " . $bugs[$task->fromBug]->title;
|
||||
|
||||
if(isset($executions[$task->execution])) $task->execution = $executions[$task->execution] . "(#$task->execution)";
|
||||
if(isset($taskLang->typeList[$task->type])) $task->type = $taskLang->typeList[$task->type];
|
||||
if(isset($taskLang->priList[$task->pri])) $task->pri = $taskLang->priList[$task->pri];
|
||||
|
||||
@@ -23,9 +23,8 @@ $(function()
|
||||
return false;
|
||||
});
|
||||
|
||||
var executionID = $('#execution').val();
|
||||
if(executionType != 'kanban') executionID = $('#execution').val();
|
||||
loadStories(executionID);
|
||||
|
||||
})
|
||||
|
||||
/**
|
||||
|
||||
@@ -2517,6 +2517,7 @@ class taskModel extends model
|
||||
->beginIF($type == 'assignedTo' and ($this->app->rawModule == 'my' or $this->app->rawModule == 'block'))->andWhere('t2.status', true)->ne('suspended')->orWhere('t4.status')->ne('suspended')->markRight(1)->fi()
|
||||
->beginIF($type != 'all' and $type != 'finishedBy' and $type != 'assignedTo')->andWhere("t1.`$type`")->eq($account)->fi()
|
||||
->beginIF($type == 'assignedTo')->andWhere("(t1.assignedTo = '{$account}' or (t1.mode = 'multi' and t5.`account` = '{$account}') )")->fi()
|
||||
->beginIF($type == 'assignedTo' and $this->app->rawModule == 'my' and $this->app->rawMethod == 'work')->andWhere('t1.status')->ne('closed')->fi()
|
||||
->orderBy($orderBy)
|
||||
->beginIF($limit > 0)->limit($limit)->fi()
|
||||
->page($pager)
|
||||
|
||||
@@ -339,6 +339,7 @@ foreach(explode(',', $config->task->create->requiredFields) as $field)
|
||||
<?php js::set('storyPinYin', (empty($config->isINT) and class_exists('common')) ? common::convert2Pinyin($stories) : array());?>
|
||||
<?php js::set('testStoryIdList', $testStoryIdList);?>
|
||||
<?php js::set('executionID', $execution->id);?>
|
||||
<?php js::set('executionType', $execution->type);?>
|
||||
<script>
|
||||
$(function(){parent.$('body.hide-modal-close').removeClass('hide-modal-close');})
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user