* Finish task 44492
This commit is contained in:
@@ -44,7 +44,7 @@ $config->bug->list->customBatchEditFields = 'type,severity,pri,productplan,ass
|
||||
|
||||
$config->bug->custom = new stdclass();
|
||||
$config->bug->custom->createFields = $config->bug->list->customCreateFields;
|
||||
$config->bug->custom->batchCreateFields = 'execution,deadline,steps,type,severity,os,browser';
|
||||
$config->bug->custom->batchCreateFields = 'execution,deadline,steps,type,severity,os,browser,%s';
|
||||
$config->bug->custom->batchEditFields = 'type,severity,pri,branch,assignedTo,deadline,status,resolvedBy,resolution';
|
||||
|
||||
$config->bug->editor = new stdclass();
|
||||
|
||||
@@ -699,6 +699,17 @@ class bug extends control
|
||||
if($product->type != 'normal') $customFields[$product->type] = $this->lang->product->branchName[$product->type];
|
||||
$customFields[$field] = $this->lang->bug->$field;
|
||||
}
|
||||
|
||||
if($product->type != 'normal')
|
||||
{
|
||||
$this->config->bug->custom->batchCreateFields = sprintf($this->config->bug->custom->batchCreateFields, $product->type);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->config->bug->custom->batchCreateFields = sprintf($this->config->bug->custom->batchCreateFields, '');
|
||||
$this->config->bug->custom->batchCreateFields = trim($this->config->bug->custom->batchCreateFields, ',');
|
||||
}
|
||||
|
||||
$showFields = $this->config->bug->custom->batchCreateFields;
|
||||
if($product->type == 'normal')
|
||||
{
|
||||
|
||||
@@ -29,7 +29,7 @@ $config->testcase->customBatchEditFields = 'module,story,stage,precondition,st
|
||||
|
||||
$config->testcase->custom = new stdclass();
|
||||
$config->testcase->custom->createFields = $config->testcase->customCreateFields;
|
||||
$config->testcase->custom->batchCreateFields = 'module,story';
|
||||
$config->testcase->custom->batchCreateFields = 'module,story,%s';
|
||||
$config->testcase->custom->batchEditFields = 'branch,module,stage,status,pri,story';
|
||||
|
||||
global $lang;
|
||||
|
||||
@@ -536,6 +536,17 @@ class testcase extends control
|
||||
if($product->type != 'normal') $customFields[$product->type] = $this->lang->product->branchName[$product->type];
|
||||
$customFields[$field] = $this->lang->testcase->$field;
|
||||
}
|
||||
|
||||
if($product->type != 'normal')
|
||||
{
|
||||
$this->config->testcase->custom->batchCreateFields = sprintf($this->config->testcase->custom->batchCreateFields, $product->type);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->config->testcase->custom->batchCreateFields = sprintf($this->config->testcase->custom->batchCreateFields, '');
|
||||
$this->config->testcase->custom->batchCreateFields = trim($this->config->testcase->custom->batchCreateFields, ',');
|
||||
}
|
||||
|
||||
$showFields = $this->config->testcase->custom->batchCreateFields;
|
||||
if($product->type == 'normal')
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user