* change name and adjust code format for custom fields.

This commit is contained in:
chenfeiCF
2016-04-29 15:23:15 +08:00
parent 0fc6a0da81
commit 38dbf6e28a
30 changed files with 64 additions and 63 deletions
+3 -3
View File
@@ -303,7 +303,7 @@ class testcase extends control
/* Set custom. */
foreach(explode(',', $this->config->testcase->customCreateFields) as $field) $customFields[$field] = $this->lang->testcase->$field;
$this->view->customFields = $customFields;
$this->view->showFields = $this->config->testcase->custom->create;
$this->view->showFields = $this->config->testcase->custom->createFields;
$this->view->title = $title;
$this->view->caseTitle = $caseTitle;
@@ -372,7 +372,7 @@ class testcase extends control
/* Set custom. */
foreach(explode(',', $this->config->testcase->customBatchCreateFields) as $field) $customFields[$field] = $this->lang->testcase->$field;
$this->view->customFields = $customFields;
$this->view->showFields = $this->config->testcase->custom->batchcreate;
$this->view->showFields = $this->config->testcase->custom->batchCreateFields;
$this->view->title = $this->products[$productID] . $this->lang->colon . $this->lang->testcase->batchCreate;
$this->view->position[] = html::a($this->createLink('testcase', 'browse', "productID=$productID&branch=$branch"), $this->products[$productID]);
@@ -600,7 +600,7 @@ class testcase extends control
/* Set custom. */
foreach(explode(',', $this->config->testcase->customBatchEditFields) as $field) $customFields[$field] = $this->lang->testcase->$field;
$this->view->customFields = $customFields;
$this->view->showFields = $this->config->testcase->custom->batchedit;
$this->view->showFields = $this->config->testcase->custom->batchEditFields;
/* Assign. */
$this->view->position[] = $this->lang->testcase->common;