diff options
author | Gervase Markham <gerv@mozilla.org> | 2013-05-03 16:13:53 +0200 |
---|---|---|
committer | Dave Lawrence <dlawrence@mozilla.com> | 2013-05-03 16:13:53 +0200 |
commit | b4410eb57d8e07de23de18b6375039c47e6cea35 (patch) | |
tree | 4ecc320aa75ae046827744a1fa83f7de64fe06fe /importxml.pl | |
parent | 7738bea531e27159910df07e329dac26ff3edf7b (diff) | |
download | bugzilla-b4410eb57d8e07de23de18b6375039c47e6cea35.tar.gz bugzilla-b4410eb57d8e07de23de18b6375039c47e6cea35.tar.xz |
Bug 866248 - backport new date custom field type from bug 801664 to bmo/4.2
r=glob
Diffstat (limited to 'importxml.pl')
-rwxr-xr-x | importxml.pl | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/importxml.pl b/importxml.pl index 7ed4c9f21..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"; |