diff options
author | Gervase Markham <gerv@gerv.net> | 2013-01-02 17:58:34 +0000 |
---|---|---|
committer | Gervase Markham <gerv@mozilla.org> | 2013-01-02 17:58:34 +0000 |
commit | 725f2fb7958c6a251efdb056d49063fc4f8da91a (patch) | |
tree | 068dd4c94d2a9f7bf3ae85f6019d4c2ba4a67989 /importxml.pl | |
parent | Bug 413851 - add CSV output option to request lists. r=LpSolit. (diff) | |
download | bugzilla-725f2fb7958c6a251efdb056d49063fc4f8da91a.tar.gz bugzilla-725f2fb7958c6a251efdb056d49063fc4f8da91a.tar.bz2 bugzilla-725f2fb7958c6a251efdb056d49063fc4f8da91a.zip |
Bug 801664 - Add DATE type for custom fields. r=LpSolit.
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 92a85c6da..4e78f093f 100755 --- a/importxml.pl +++ b/importxml.pl @@ -1023,6 +1023,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"; |