* Code for port.
This commit is contained in:
@@ -17,7 +17,7 @@ $config->port->datetimeFeilds = '';
|
||||
$config->port->listFields = '';
|
||||
$config->port->sysLangFields = ',pri,status,type,mode,severity,os,browser,resolution,confirmed,source,reviewResult,stage,change';
|
||||
$config->port->sysDataFields = 'execution,product,user';
|
||||
$config->port->userFields = 'assignedTo,openedBy,finishedBy,canceledBy,closedBy,lastEditedBy,lastRunner,resolvedBy';
|
||||
$config->port->userFields = 'assignedTo,openedBy,finishedBy,canceledBy,closedBy,lastEditedBy,lastRunner,resolvedBy,reviewedBy';
|
||||
|
||||
$config->port->import = new stdClass();
|
||||
|
||||
|
||||
@@ -187,6 +187,8 @@ class port extends control
|
||||
if(!isset($fieldList[$field]['values'][''])) $fieldList[$field]['values'][''] = '';
|
||||
$multiple = $fieldList[$field]['control'] == 'multiple' ? 'multiple' : '';
|
||||
|
||||
return print(html::select($field . "[$index]", $fieldList[$field]['values'], $value, "class='form-control picker-select' $multiple"));
|
||||
$name = $field . "[$index]";
|
||||
if($multiple == 'multiple') $name .= "[]";
|
||||
return print(html::select($name, $fieldList[$field]['values'], $value, "class='form-control picker-select' $multiple"));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1305,7 +1305,7 @@ class portModel extends model
|
||||
if($control == 'select' or $control == 'multiple')
|
||||
{
|
||||
if(!empty($values[$selected])) $options = array($selected => $values[$selected]);
|
||||
if(!empty($values[$selected]) and isset($values[0])) $options = array_slice($values, 0, 1);
|
||||
if(empty($options) and isset($values[0])) $options = array_slice($values, 0, 1);
|
||||
}
|
||||
|
||||
if($control == 'select') $html .= '<td>' . html::select("$name", $options, $selected, "class='form-control picker-select nopicker' data-field='{$field}'") . '</td>';
|
||||
|
||||
@@ -18,6 +18,7 @@ $insert = $this->session->insert;
|
||||
<style>
|
||||
form{overflow-x: scroll}
|
||||
#maxImport:focus {outline: none;}
|
||||
.pointorNone{pointer-events:none;}
|
||||
.c-pri{width:100px}
|
||||
#showData > thead > tr > th{width:150px;}
|
||||
.c-id{width:50px}
|
||||
|
||||
+10
-4
@@ -162,16 +162,22 @@ $config->story->datatable->fieldList['assignedDate']['fixed'] = 'no';
|
||||
$config->story->datatable->fieldList['assignedDate']['width'] = '90';
|
||||
$config->story->datatable->fieldList['assignedDate']['required'] = 'no';
|
||||
|
||||
$config->story->datatable->fieldList['reviewedBy']['title'] = 'reviewedBy';
|
||||
$config->story->datatable->fieldList['reviewedBy']['fixed'] = 'no';
|
||||
$config->story->datatable->fieldList['reviewedBy']['width'] = '80';
|
||||
$config->story->datatable->fieldList['reviewedBy']['required'] = 'no';
|
||||
$config->story->datatable->fieldList['reviewedBy']['title'] = 'reviewedBy';
|
||||
$config->story->datatable->fieldList['reviewedBy']['fixed'] = 'no';
|
||||
$config->story->datatable->fieldList['reviewedBy']['width'] = '80';
|
||||
$config->story->datatable->fieldList['reviewedBy']['required'] = 'no';
|
||||
$config->story->datatable->fieldList['reviewedBy']['control'] = 'multiple';
|
||||
$config->story->datatable->fieldList['reviewedBy']['dataSource'] = array('module' => 'user', 'method' => 'getPairs', 'params' => 'devfirst|noclosed|nodeleted');
|
||||
|
||||
$config->story->datatable->fieldList['reviewedDate']['title'] = 'reviewedDate';
|
||||
$config->story->datatable->fieldList['reviewedDate']['fixed'] = 'no';
|
||||
$config->story->datatable->fieldList['reviewedDate']['width'] = '90';
|
||||
$config->story->datatable->fieldList['reviewedDate']['required'] = 'no';
|
||||
|
||||
$config->story->datatable->fieldList['needReview']['title'] = 'needReview';
|
||||
$config->story->datatable->fieldList['needReview']['control'] = 'select';
|
||||
$config->story->datatable->fieldList['needReview']['dataSource'] = array('lang' => 'reviewList');
|
||||
|
||||
$config->story->datatable->fieldList['closedBy']['title'] = 'closedBy';
|
||||
$config->story->datatable->fieldList['closedBy']['fixed'] = 'no';
|
||||
$config->story->datatable->fieldList['closedBy']['width'] = '80';
|
||||
|
||||
Reference in New Issue
Block a user