* Code for bug showimport.

This commit is contained in:
tanghucheng
2022-07-25 11:24:37 +08:00
parent 96cef1ccfc
commit be483be25b
3 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ $config->bug->fieldList['branch']['dataSource'] = array('module' => 'bug', 'meth
$config->bug->fieldList['module']['control'] = 'select';
$config->bug->fieldList['module']['title'] = 'module';
$config->bug->fieldList['module']['dataSource'] = array('module' => 'bug', 'method' => 'getRelatedObjects', 'params' => 'module&id,name');
$config->bug->fieldList['module']['dataSource'] = array('module' => 'tree', 'method' => 'getOptionMenu', 'params' => '$productID&bug');
$config->bug->fieldList['project']['title'] = 'project';
$config->bug->fieldList['project']['control'] = 'hidden';
+1 -1
View File
@@ -244,7 +244,7 @@ class portModel extends model
$this->commonActions($model);
if(!empty($this->modelConfig->fieldList[$field]['title'])) $title = $this->modelLang->{$this->modelConfig->fieldList[$field]['title']};
if(!empty($this->modelConfig->fieldList[$field]['title'])) return $this->modelLang->{$this->modelConfig->fieldList[$field]['title']};
if(array_key_exists($field, $this->lang->$model))
{
$title = $this->lang->$model->$field;
-1
View File
@@ -25,7 +25,6 @@ $(function()
if(parseInt($('#maxImport').val())) $('#times').html(Math.ceil(parseInt($('#allCount').html()) / parseInt($('#maxImport').val())));
});
$('#import').click(function(){
$.cookie('maxImport', $('#maxImport').val());
location.href = "<?php echo $url;?>";