* adjust code for task #538.
This commit is contained in:
@@ -70,7 +70,7 @@ $lang->story->reviewResult = 'Reviewed result';
|
||||
$lang->story->preVersion = 'Pre version';
|
||||
$lang->story->keywords = 'Keyword';
|
||||
|
||||
$lang->story->same = 'The same up';
|
||||
$lang->story->same = 'The same as above';
|
||||
|
||||
$lang->story->useList[0] = 'No use';
|
||||
$lang->story->useList[1] = 'Use';
|
||||
|
||||
@@ -119,6 +119,7 @@ class task extends control
|
||||
}
|
||||
|
||||
$stories = $this->story->getProjectStoryPairs($projectID);
|
||||
$stories['same'] = $this->lang->task->same;
|
||||
$members = $this->project->getTeamMemberPairs($projectID, 'nodeleted');
|
||||
$header['title'] = $project->name . $this->lang->colon . $this->lang->task->create;
|
||||
$position[] = html::a($taskLink, $project->name);
|
||||
@@ -489,7 +490,7 @@ class task extends control
|
||||
}
|
||||
|
||||
/* Get action info. */
|
||||
$action = $this->action->getById($actionID);
|
||||
$action = $this->loadModel('action')->getById($actionID);
|
||||
$history = $this->action->getHistory($actionID);
|
||||
$action->history = isset($history[$actionID]) ? $history[$actionID] : array();
|
||||
|
||||
|
||||
@@ -68,6 +68,7 @@ $lang->task->lastEditedBy = 'Last Edited By';
|
||||
$lang->task->lastEditedDate = 'Last Edited Date';
|
||||
$lang->task->lastEdited = 'Last Edited';
|
||||
|
||||
$lang->task->same = 'The same as above';
|
||||
$lang->task->notes = '(Notes: the name, type, pri and estimate must be written, otherwise it is no use)';
|
||||
|
||||
$lang->task->statusList[''] = '';
|
||||
|
||||
@@ -68,6 +68,7 @@ $lang->task->lastEditedBy = '最后修改';
|
||||
$lang->task->lastEditedDate = '最后修改日期';
|
||||
$lang->task->lastEdited = '最后编辑';
|
||||
|
||||
$lang->task->same = '同上';
|
||||
$lang->task->notes = '(注:“任务类型”、“任务名称”、“优先级”和“预计工时”必需填写,否则此行无效)';
|
||||
|
||||
$lang->task->statusList[''] = '';
|
||||
|
||||
@@ -92,8 +92,8 @@ class taskModel extends model
|
||||
{
|
||||
if($tasks->type[$i] != '' and $tasks->name[$i] != '' and $tasks->pri[$i] != 0 and $tasks->estimate[$i] != '')
|
||||
{
|
||||
$data[$i]->story = $tasks->story[$i];
|
||||
$data[$i]->type = $tasks->type[$i];
|
||||
$data[$i]->story = $tasks->story[$i] != 'same' ? $tasks->story[$i] : ($i == 0 ? 0 : $data[$i-1]->story);
|
||||
$data[$i]->type = $tasks->type[$i] == 'same' ? ($i == 0 ? '' : $data[$i-1]->type) : $tasks->type[$i];
|
||||
$data[$i]->name = $tasks->name[$i];
|
||||
$data[$i]->desc = $tasks->desc[$i];
|
||||
$data[$i]->assignedTo = $tasks->assignedTo[$i];
|
||||
|
||||
@@ -25,13 +25,14 @@
|
||||
<th><?php echo $lang->task->estimateBatch;?></th>
|
||||
</tr>
|
||||
<?php for($i = 0; $i < $config->task->batchCreate; $i++):?>
|
||||
<?php $moduleID = $i == 0 ? 0 : 'same';?>
|
||||
<?php $planID = $i == 0 ? '' : 'same';?>
|
||||
<?php $story = $i == 0 ? '' : 'same';?>
|
||||
<?php $lang->task->typeList['same'] = $lang->task->same; $type = $i == 0 ? '' : 'same';?>
|
||||
|
||||
<?php $pri = 3;?>
|
||||
<tr class='a-center'>
|
||||
<td><?php echo $i+1;?></td>
|
||||
<td><?php echo html::select("story[$i]", $stories, '', 'class=select-2');?></td>
|
||||
<td><?php echo html::select("type[$i]", $lang->task->typeList, '', "class=select-2"); echo "<span class='star'>*</span>";?></td>
|
||||
<td><?php echo html::select("story[$i]", $stories, $story, 'class=select-2');?></td>
|
||||
<td><?php echo html::select("type[$i]", $lang->task->typeList, $type, "class=select-2"); echo "<span class='star'>*</span>";?></td>
|
||||
<td><?php echo html::input("name[$i]", '', "class='text-1'"); echo "<span class='star'>*</span>";?></td>
|
||||
<td><?php echo html::textarea("desc[$i]", '', "rows='1' class='text-1'");?></td>
|
||||
<td><?php echo html::select("assignedTo[$i]", $members, '', "class=select-2");?></td>
|
||||
|
||||
Reference in New Issue
Block a user