diff --git a/module/testcase/config/table.php b/module/testcase/config/table.php index da8b58d0dd..db407a2682 100644 --- a/module/testcase/config/table.php +++ b/module/testcase/config/table.php @@ -240,7 +240,7 @@ $config->testcase->importfromlib->dtable->fieldList['id']['fixed'] = false; $config->testcase->importfromlib->dtable->fieldList['branch']['name'] = 'branch'; $config->testcase->importfromlib->dtable->fieldList['branch']['title'] = $lang->testcase->branch; $config->testcase->importfromlib->dtable->fieldList['branch']['type'] = 'control'; -$config->testcase->importfromlib->dtable->fieldList['branch']['control'] = 'picker'; +$config->testcase->importfromlib->dtable->fieldList['branch']['control'] = array('type' => 'picker', 'props' => array('required' => true)); $config->testcase->importfromlib->dtable->fieldList['branch']['width'] = '200px'; $config->testcase->importfromlib->dtable->fieldList['pri']['name'] = 'pri'; diff --git a/module/testcase/js/importfromlib.ui.js b/module/testcase/js/importfromlib.ui.js index b290072b6e..c0218e0e14 100644 --- a/module/testcase/js/importfromlib.ui.js +++ b/module/testcase/js/importfromlib.ui.js @@ -20,7 +20,7 @@ window.getModuleCellProps = function(cell) const caseID = cell.row.data.id; const branchID = this.getFormData(`branch[${cell.row.data.id}]`) != undefined ? this.getFormData(`branch[${cell.row.data.id}]`) : cell.row.data.branch; const modules = canImportModules[branchID] != undefined && canImportModules[branchID][caseID] != undefined ? canImportModules[branchID][caseID] : {}; - return {items: modules}; + return {items: modules, required: true}; } window.toggleLib = function(event) diff --git a/module/testcase/ui/importfromlib.html.php b/module/testcase/ui/importfromlib.html.php index b817ed9433..81afc6e508 100644 --- a/module/testcase/ui/importfromlib.html.php +++ b/module/testcase/ui/importfromlib.html.php @@ -32,7 +32,7 @@ featureBar set::name('fromlib'), set::items($libraries), set::value($libID), - set::placeholder($lang->testcase->placeholder->selectLib), + set::required(true), bind::change("window.toggleLib(event)") ) ),