diff --git a/module/bug/view/create.html.php b/module/bug/view/create.html.php index 121f22921e..bbe2bf8f82 100644 --- a/module/bug/view/create.html.php +++ b/module/bug/view/create.html.php @@ -32,6 +32,12 @@ js::set('stepsNotEmpty', $lang->bug->stepsNotEmpty); + bug->create->requiredFields) as $field) + { + if($field and strpos($showFields, $field) === false) $showFields .= ',' . $field; + } + ?>
diff --git a/module/story/view/create.html.php b/module/story/view/create.html.php index 4052b82dd6..87b7fc6a6a 100644 --- a/module/story/view/create.html.php +++ b/module/story/view/create.html.php @@ -24,6 +24,12 @@ + story->create->requiredFields) as $field) + { + if($field and strpos($showFields, $field) === false) $showFields .= ',' . $field; + } + ?>
diff --git a/module/task/view/create.html.php b/module/task/view/create.html.php index 24ced660c1..374ef65abd 100644 --- a/module/task/view/create.html.php +++ b/module/task/view/create.html.php @@ -24,6 +24,12 @@ + task->create->requiredFields) as $field) + { + if($field and strpos($showFields, $field) === false) $showFields .= ',' . $field; + } + ?>
diff --git a/module/testcase/view/create.html.php b/module/testcase/view/create.html.php index 6582b2bc5d..678fcb47e8 100644 --- a/module/testcase/view/create.html.php +++ b/module/testcase/view/create.html.php @@ -23,232 +23,238 @@ - -
- - - - - - - - - testcase->typeList['unit']);?> - - - + testcase->create->requiredFields) as $field) + { + if($field and strpos($showFields, $field) === false) $showFields .= ',' . $field; + } + ?> + +
testcase->product;?> -
- - session->currentProductType != 'normal') echo html::select('branch', $branches, $branch, "onchange='loadBranch();' class='form-control' style='width:120px'");?> -
-
-
- testcase->module?> - "; - echo html::a($this->createLink('tree', 'browse', "rootID=$productID&view=case¤tModuleID=0&branch=$branch", '', true), $lang->tree->manage, '', "class='text-primary' data-toggle='modal' data-type='iframe' data-width='95%'"); - echo html::a("javascript:void(0)", $lang->refresh, '', "class='refresh' onclick='loadProductModules($productID)'"); - echo ''; - } - ?> -
-
testcase->type;?>testcase->typeList, $type, "class='form-control chosen'");?> -
- testcase->stage?> - testcase->stageList, $stage, "class='form-control chosen' multiple='multiple'");?> -
-
+ + + + + + + + + testcase->typeList['unit']);?> + + + + + + global->flow != 'onlyTest'):?> + + + + - - global->flow != 'onlyTest'):?> - - - - - - - - + + - - - - - - - - - - - - - - - - - - - - printExtendFields('', 'table');?> - - - - - - - - - - -
testcase->product;?> +
+ + session->currentProductType != 'normal') echo html::select('branch', $branches, $branch, "onchange='loadBranch();' class='form-control' style='width:120px'");?> +
+
+
+ testcase->module?> + "; + echo html::a($this->createLink('tree', 'browse', "rootID=$productID&view=case¤tModuleID=0&branch=$branch", '', true), $lang->tree->manage, '', "class='text-primary' data-toggle='modal' data-type='iframe' data-width='95%'"); + echo html::a("javascript:void(0)", $lang->refresh, '', "class='refresh' onclick='loadProductModules($productID)'"); + echo ''; + } + ?> +
+
testcase->type;?>testcase->typeList, $type, "class='form-control chosen'");?> +
+ testcase->stage?> + testcase->stageList, $stage, "class='form-control chosen' multiple='multiple'");?> +
+
testcase->lblStory;?> +
+ searchMore . '"');?> + + + + + createLink('story', 'view', "storyID=$storyID", '', true), $lang->preview, '', "class='btn' id='preview'");?> + + +
+
testcase->lblStory;?> -
- searchMore . '"');?> - - - - - createLink('story', 'view', "storyID=$storyID", '', true), $lang->preview, '', "class='btn' id='preview'");?> - - -
-
testcase->title;?> -
-
- -
- - - +
testcase->title;?> +
+
+ +
+ + + +
-
- - testcase->pri;?> - testcase->priList as $priKey => $priValue) - { - if(!empty($priKey) and (string)$priKey != (string)$priValue) - { - $hasCustomPri = true; - break; - } - } - $priList = $lang->testcase->priList; - if(end($priList)) unset($priList[0]); - if(!isset($priList[$pri])) - { - reset($priList); - $pri = key($priList); - } - ?> - - - - -
- - - - - testcase->forceNotReview()):?> - testcase->forceNotReview, '', "id='forceNotReview0'");?> - -
-
testcase->precondition;?>
testcase->steps;?> - - - - - - - - - - - - - - - - - $step):?> - - - - - - - - -
testcase->stepID;?>testcase->stepDesc;?>testcase->stepExpect;?>actions;?>
-
- - - - -
- - -
-
-
-
-
- - - -
-
-
- - desc, "rows='1' class='form-control autosize step-steps'") ?> - - type)) $step->type = 'step';?> - -
- type === 'group') echo ' checked' ?>> - -
-
-
-
expect, "rows='1' class='form-control autosize step-expects'") ?> -
- - - -
-
-
testcase->keywords;?>
testcase->status;?>
testcase->files;?>fetch('file', 'buildform');?>
- - -
-
- -