summaryrefslogtreecommitdiffstats
path: root/Bugzilla/WebService
diff options
context:
space:
mode:
authorGervase Markham <gerv@gerv.net>2013-01-02 18:58:34 +0100
committerGervase Markham <gerv@mozilla.org>2013-01-02 18:58:34 +0100
commit725f2fb7958c6a251efdb056d49063fc4f8da91a (patch)
tree068dd4c94d2a9f7bf3ae85f6019d4c2ba4a67989 /Bugzilla/WebService
parent21b50cba4e08e723f8c2d8e8b5800d0a13e2c180 (diff)
downloadbugzilla-725f2fb7958c6a251efdb056d49063fc4f8da91a.tar.gz
bugzilla-725f2fb7958c6a251efdb056d49063fc4f8da91a.tar.xz
Bug 801664 - Add DATE type for custom fields. r=LpSolit.
Diffstat (limited to 'Bugzilla/WebService')
-rw-r--r--Bugzilla/WebService/Bug.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/Bugzilla/WebService/Bug.pm b/Bugzilla/WebService/Bug.pm
index 709983389..fe102f70d 100644
--- a/Bugzilla/WebService/Bug.pm
+++ b/Bugzilla/WebService/Bug.pm
@@ -929,7 +929,9 @@ sub _bug_to_hash {
if ($field->type == FIELD_TYPE_BUG_ID) {
$item{$name} = $self->type('int', $bug->$name);
}
- elsif ($field->type == FIELD_TYPE_DATETIME) {
+ elsif ($field->type == FIELD_TYPE_DATETIME
+ || $field->type == FIELD_TYPE_DATE)
+ {
$item{$name} = $self->type('dateTime', $bug->$name);
}
elsif ($field->type == FIELD_TYPE_MULTI_SELECT) {