* Fix linkcase search default toggle bug.

This commit is contained in:
wangyuting
2024-04-10 17:09:02 +08:00
parent 8189ecce61
commit 6a42efefb9
3 changed files with 11 additions and 10 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ $fields->field('scriptFile')
->width('full')
->label($lang->testcase->autoScript)
->className('autoScript')
->hidden(data('case.auto') != 'auto')
->hidden(data('case.auto') != 'auto' && !data('onlyAutoCase'))
->control('fileSelector', array('accept' => $config->testcase->scriptAcceptFileTypes, 'multiple' => false, 'maxFileCount' => 1, 'onAdd' => jsRaw('window.readScriptContent'), 'onRemove' => jsRaw('window.showUploadScriptBtn')));
$fields->field('script')
+9 -8
View File
@@ -339,14 +339,15 @@ class testsuite extends control
if(!$this->config->testcase->needReview) unset($this->config->testcase->search['params']['status']['values']['wait']);
$this->loadModel('search')->setSearchParams($this->config->testcase->search);
$this->view->title = $suite->name . $this->lang->colon . $this->lang->testsuite->linkCase;
$this->view->users = $this->loadModel('user')->getPairs('noletter');
$this->view->cases = $this->testsuite->getUnlinkedCases($suite, $browseType, $param, $pager);
$this->view->suiteID = $suiteID;
$this->view->param = $param;
$this->view->pager = $pager;
$this->view->suite = $suite;
$this->view->productID = $productID;
$this->view->title = $suite->name . $this->lang->colon . $this->lang->testsuite->linkCase;
$this->view->users = $this->loadModel('user')->getPairs('noletter');
$this->view->cases = $this->testsuite->getUnlinkedCases($suite, $browseType, $param, $pager);
$this->view->suiteID = $suiteID;
$this->view->param = $param;
$this->view->pager = $pager;
$this->view->suite = $suite;
$this->view->productID = $productID;
$this->view->browseType = $browseType;
$this->display();
}
+1 -1
View File
@@ -20,7 +20,7 @@ featureBar
entityLabel(set(array('entityID' => $suite->id, 'level' => 3, 'text' => $suite->name))),
icon('angle-right'),
$lang->testsuite->linkCase,
li(searchToggle(set::open(true)))
li(searchToggle(set::open($browseType == 'bySearch')))
)
)
);