* [task#126383,doing,0.5h] Add build data.
This commit is contained in:
@@ -323,7 +323,6 @@ $scrumProjectManage->tasks['manageTask']['steps'][] = array(
|
||||
|
||||
$scrumProjectManage->tasks['manageTask']['steps'][] = array(
|
||||
'type' => 'form',
|
||||
'target' => 'form',
|
||||
'page' => 'build-create',
|
||||
'title' => $lang->tutorial->scrumProjectManage->manageTask->step20->name,
|
||||
);
|
||||
@@ -338,8 +337,9 @@ $scrumProjectManage->tasks['manageTask']['steps'][] = array(
|
||||
|
||||
$scrumProjectManage->tasks['manageTask']['steps'][] = array(
|
||||
'type' => 'click',
|
||||
'target' => '', //版本列表中关联需求按钮
|
||||
'target' => 'div[data-row="1"] a.build-linkstory-btn',
|
||||
'page' => 'execution-build',
|
||||
'url' => array('execution', 'build', 'executionID=3'),
|
||||
'title' => $lang->tutorial->scrumProjectManage->manageTask->step22->name,
|
||||
'desc' => $lang->tutorial->scrumProjectManage->manageTask->step22->desc
|
||||
);
|
||||
|
||||
@@ -509,7 +509,7 @@ class tutorialModel extends model
|
||||
$task->fromBug = 0;
|
||||
$task->feedback = 0;
|
||||
$task->fromIssue = 0;
|
||||
$task->name = 'Test Task';
|
||||
$task->name = 'Test task';
|
||||
$task->type = 'devel';
|
||||
$task->mode = '';
|
||||
$task->pri = 3;
|
||||
@@ -579,4 +579,52 @@ class tutorialModel extends model
|
||||
$tasks[$task->id] = $task;
|
||||
return $tasks;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取新手模式版本。
|
||||
* Get build.
|
||||
*
|
||||
* @access public
|
||||
* @return object
|
||||
*/
|
||||
public function getBuild(): object
|
||||
{
|
||||
$build = new stdClass();
|
||||
$build->id = 1;
|
||||
$build->project = 2;
|
||||
$build->product = 1;
|
||||
$build->branch = 0;
|
||||
$build->execution = 3;
|
||||
$build->builds = '';
|
||||
$build->name = 'Test build';
|
||||
$build->scmPath = '';
|
||||
$build->filePath = '';
|
||||
$build->date = '';
|
||||
$build->stories = '';
|
||||
$build->bugs = '';
|
||||
$build->artifactRepoID = 0;
|
||||
$build->builder = 'test';
|
||||
$build->desc = '';
|
||||
$build->createdBy = '';
|
||||
$build->createdDate = '';
|
||||
$build->deleted = 0;
|
||||
$build->executionName = 'Test execution';
|
||||
$build->productName = 'Test product';
|
||||
return $build;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取新手模式版本。
|
||||
* Get build.
|
||||
*
|
||||
* @access public
|
||||
* @return string
|
||||
*/
|
||||
public function getBuilds(): array
|
||||
{
|
||||
$build = $this->getBuild();
|
||||
$builds = array();
|
||||
$builds[$build->id] = $build;
|
||||
return $builds;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user