* Code for bug showimport.
This commit is contained in:
@@ -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';
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;?>";
|
||||
|
||||
Reference in New Issue
Block a user