summaryrefslogtreecommitdiffstats
path: root/importxml.pl
diff options
context:
space:
mode:
Diffstat (limited to 'importxml.pl')
-rwxr-xr-ximportxml.pl11
1 files changed, 10 insertions, 1 deletions
diff --git a/importxml.pl b/importxml.pl
index 896848b0a..e9b7c9ad7 100755
--- a/importxml.pl
+++ b/importxml.pl
@@ -1039,6 +1039,15 @@ sub process_bug {
push(@query, $custom_field);
push(@values, $value);
}
+ } elsif ($field->type == FIELD_TYPE_DATE) {
+ eval { $value = Bugzilla::Bug->_check_date_field($value); };
+ if ($@) {
+ $err .= "Skipping illegal value \"$value\" in $custom_field.\n" ;
+ }
+ else {
+ push(@query, $custom_field);
+ push(@values, $value);
+ }
} else {
$err .= "Type of custom field $custom_field is an unhandled FIELD_TYPE: " .
$field->type . "\n";
@@ -1208,7 +1217,7 @@ sub process_bug {
$c->{isprivate}, $c->{thetext}, 0);
}
$sth_comment->execute($id, $exporterid, $timestamp, 0, $comments, $worktime);
- Bugzilla::Bug->new($id)->_sync_fulltext('new_bug');
+ Bugzilla::Bug->new($id)->_sync_fulltext( new_bug => 1);
# Add this bug to each group of which its product is a member.
my $sth_group = $dbh->prepare("INSERT INTO bug_group_map (bug_id, group_id)