diff --git a/importxls.cgi b/importxls.cgi index 5b4ccf91e..50986ef5a 100755 --- a/importxls.cgi +++ b/importxls.cgi @@ -116,7 +116,7 @@ sub guess_field_name for (my $i = 0; $i < @$guess_field_descs; $i+=2) { ($k, $v) = ($guess_field_descs->[$i], $guess_field_descs->[$i+1]); - ($r = $k), last if $name =~ /\Q$v\E/is; + ($r = $k), last if $name =~ /\Q$v\E/is || $name eq $k; } return $r; } diff --git a/template/en/custom/bug/import/importxls.html.tmpl b/template/en/custom/bug/import/importxls.html.tmpl index a7377e438..0c4d5817f 100644 --- a/template/en/custom/bug/import/importxls.html.tmpl +++ b/template/en/custom/bug/import/importxls.html.tmpl @@ -126,13 +126,21 @@ function fieldrename(field)