diff --git a/module/bug/js/create.js b/module/bug/js/create.js
index f44d38b6df..0b407a1f5e 100644
--- a/module/bug/js/create.js
+++ b/module/bug/js/create.js
@@ -123,7 +123,7 @@ $(function()
{
var $group = $('#bugTypeInputGroup');
var width = $group.width(), addonWidth = 0;
- var $controls = $group.children('.form-control');
+ var $controls = $group.find('.chosen-single');
$group.children('.input-group-addon').each(function()
{
addonWidth += $(this).outerWidth();
diff --git a/module/bug/view/batchcreate.html.php b/module/bug/view/batchcreate.html.php
index 4b6dda944d..f5122a65a8 100644
--- a/module/bug/view/batchcreate.html.php
+++ b/module/bug/view/batchcreate.html.php
@@ -77,9 +77,9 @@ foreach(explode(',', $showFields) as $field)
$os = $i == 0 ? '' : 'ditto';
$browser = $i == 0 ? '' : 'ditto';
?>
-
|
- '> |
+ ' style='overflow:visible'> |
' style='overflow:visible'> |
' style='overflow:visible'> |
|
@@ -90,11 +90,11 @@ foreach(explode(',', $showFields) as $field)
'> |
- '> bug->typeList, $type, "class='form-control'");?> |
- '> bug->priList, $pri, "class='form-control'");?> |
- '>bug->severityList, '', "class='form-control'");?> |
- '> bug->osList, $os, "class='form-control'");?> |
- '> bug->browserList, $browser, "class='form-control'");?> |
+ ' style='overflow:visible'> bug->typeList, $type, "class='form-control chosen'");?> |
+ ' style='overflow:visible'> bug->priList, $pri, "class='form-control chosen'");?> |
+ ' style='overflow:visible'>bug->severityList, '', "class='form-control chosen'");?> |
+ ' style='overflow:visible'> bug->osList, $os, "class='form-control chosen'");?> |
+ ' style='overflow:visible'> bug->browserList, $browser, "class='form-control chosen'");?> |
'> |
@@ -110,9 +110,9 @@ foreach(explode(',', $showFields) as $field)
$os = $i - $nextStart == 0 ? '' : 'ditto';
$browser = $i - $nextStart == 0 ? '' : 'ditto';
?>
-
|
- '> |
+ ' style='overflow:visible'> |
' style='overflow:visible'> |
' style='overflow:visible'> |
|
@@ -123,11 +123,11 @@ foreach(explode(',', $showFields) as $field)
'> |
- '> bug->typeList, $type, "class='form-control'");?> |
- '> bug->priList, $pri, "class='form-control'");?> |
- '>bug->severityList, '', "class='form-control'");?> |
- '> bug->osList, $os, "class='form-control'");?> |
- '> bug->browserList, $browser, "class='form-control'");?> |
+ ' style='overflow:visible'> bug->typeList, $type, "class='form-control chosen'");?> |
+ ' style='overflow:visible'> bug->priList, $pri, "class='form-control chosen'");?> |
+ ' style='overflow:visible'>bug->severityList, '', "class='form-control chosen'");?> |
+ ' style='overflow:visible'> bug->osList, $os, "class='form-control chosen'");?> |
+ ' style='overflow:visible'> bug->browserList, $browser, "class='form-control chosen'");?> |
'> |
@@ -139,9 +139,9 @@ foreach(explode(',', $showFields) as $field)
|
- '> |
+ ' style='overflow:visible'> |
' style='overflow:visible'> |
' style='overflow:visible'> |
@@ -121,7 +121,7 @@ if($this->story->checkForceReview()) unset($visibleFields['review']);
|
| %s |
- '> |
+ ' style='overflow:visible'> |
' style='overflow:visible'> |
' style='overflow:visible'> |
diff --git a/module/story/view/create.html.php b/module/story/view/create.html.php
index a114a8a932..0303cb03b6 100644
--- a/module/story/view/create.html.php
+++ b/module/story/view/create.html.php
@@ -71,9 +71,9 @@
|
story->source?>
- story->sourceList, $source, "class='form-control'");?>
+ story->sourceList, $source, "class='form-control chosen'");?>
story->sourceNote?>
-
+
|
@@ -120,8 +120,8 @@
}
}
?>
-
- story->priList, $pri, "class='form-control minw-80px'");?>
+
+ story->priList, $pri, "class='form-control minw-80px chosen'");?>
| story->source;?> |
- story->sourceList, $story->source, 'class=form-control');?> |
+ story->sourceList, $story->source, "class='form-control chosen'");?> |
| story->sourceNote;?> |
@@ -122,12 +122,12 @@
status != 'draft'):?>
| story->stage;?> |
- story->stageList, $story->stage, 'class=form-control');?> |
+ story->stageList, $story->stage, "class='form-control chosen'");?> |
| story->pri;?> |
- story->priList, $story->pri, 'class=form-control');?> |
+ story->priList, $story->pri, "class='form-control chosen'");?> |
| story->estimate;?> |
@@ -139,7 +139,10 @@
| story->mailto;?> |
- mailto), "class='form-control' multiple");?> |
+
+ mailto), "class='form-control' multiple");?>
+ fetch('my', 'buildContactLists')?>
+ |
diff --git a/module/task/model.php b/module/task/model.php
index 7ae4d1a5a3..57fe71c99a 100644
--- a/module/task/model.php
+++ b/module/task/model.php
@@ -2088,8 +2088,8 @@ class taskModel extends model
echo $canView ? html::a($taskLink, sprintf('%03d', $task->id)) : sprintf('%03d', $task->id);
break;
case 'pri':
- echo "";
- echo $task->pri == '0' ? '' : zget(array_keys($this->lang->task->priList), $task->pri, $task->pri);
+ echo "";
+ echo $task->pri == '0' ? '' : zget($this->lang->task->priList, $task->pri);
echo "";
break;
case 'name':
diff --git a/module/task/view/create.html.php b/module/task/view/create.html.php
index 891c29d5e8..f373bfc004 100644
--- a/module/task/view/create.html.php
+++ b/module/task/view/create.html.php
@@ -34,7 +34,7 @@
| task->type;?> |
- task->typeList, $task->type, 'class=form-control onchange="setOwners(this.value)"');?> | |
+ task->typeList, $task->type, "class='form-control chosen' onchange='setOwners(this.value)'");?> | |
| task->assignedTo;?> |
@@ -101,7 +101,7 @@
| task->type;?> |
- task->typeList, $task->type, 'class=form-control');?> |
+ task->typeList, $task->type, "class='form-control chosen'");?> |
children)):?>
| task->status;?> |
- task->statusList, $task->status, 'class=form-control');?> |
+ task->statusList, $task->status, "class='form-control chosen'");?> |
| task->pri;?> |
- task->priList, $task->pri, 'class=form-control');?> |
+ task->priList, $task->pri, "class='form-control chosen'");?> |
| task->mailto;?> |
- acl == 'private' ? $members : $users, str_replace(' ' , '', $task->mailto), 'class="form-control" multiple');?> |
+
+ acl == 'private' ? $members : $users, str_replace(' ' , '', $task->mailto), 'class="form-control" multiple');?>
+ fetch('my', 'buildContactLists');?>
+ |
diff --git a/module/testcase/control.php b/module/testcase/control.php
index c7ddbdae68..543777b6be 100644
--- a/module/testcase/control.php
+++ b/module/testcase/control.php
@@ -1333,7 +1333,7 @@ class testcase extends control
$columnKey[] = $fields[$title];
}
- if(count($columnKey) != count($header) or $this->post->encode != 'utf-8')
+ if(count($columnKey) == 0 or $this->post->encode != 'utf-8')
{
$fc = file_get_contents($fileName);
$encode = $this->post->encode != "utf-8" ? $this->post->encode : 'gbk';
@@ -1354,7 +1354,7 @@ class testcase extends control
if(!isset($fields[$title])) continue;
$columnKey[] = $fields[$title];
}
- if(count($columnKey) != count($header)) die(js::alert($this->lang->testcase->errorEncode));
+ if(count($columnKey) == 0) die(js::alert($this->lang->testcase->errorEncode));
}
$this->session->set('importFile', $fileName);
diff --git a/module/testcase/view/create.html.php b/module/testcase/view/create.html.php
index f4391981cf..6b181a15dd 100644
--- a/module/testcase/view/create.html.php
+++ b/module/testcase/view/create.html.php
@@ -109,7 +109,7 @@
}
?>
- testcase->priList, $pri, "class='form-control minw-80px'");?>
+ testcase->priList, $pri, "class='form-control minw-80px chosen'");?>