From b4410eb57d8e07de23de18b6375039c47e6cea35 Mon Sep 17 00:00:00 2001 From: Gervase Markham Date: Fri, 3 May 2013 10:13:53 -0400 Subject: Bug 866248 - backport new date custom field type from bug 801664 to bmo/4.2 r=glob --- Bugzilla/Constants.pm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Bugzilla/Constants.pm') diff --git a/Bugzilla/Constants.pm b/Bugzilla/Constants.pm index c31565dd8..a30b987af 100644 --- a/Bugzilla/Constants.pm +++ b/Bugzilla/Constants.pm @@ -125,10 +125,12 @@ use Memoize; FIELD_TYPE_MULTI_SELECT FIELD_TYPE_TEXTAREA FIELD_TYPE_DATETIME + FIELD_TYPE_DATE FIELD_TYPE_BUG_ID FIELD_TYPE_BUG_URLS FIELD_TYPE_KEYWORDS - + FIELD_TYPE_HIGHEST_PLUS_ONE + EMPTY_DATETIME_REGEX ABNORMAL_SELECTS @@ -404,6 +406,10 @@ use constant FIELD_TYPE_DATETIME => 5; use constant FIELD_TYPE_BUG_ID => 6; use constant FIELD_TYPE_BUG_URLS => 7; use constant FIELD_TYPE_KEYWORDS => 8; +use constant FIELD_TYPE_DATE => 9; +# Add new field types above this line, and change the below value in the +# obvious fashion +use constant FIELD_TYPE_HIGHEST_PLUS_ONE => 10; use constant EMPTY_DATETIME_REGEX => qr/^[0\-:\sA-Za-z]+$/; -- cgit v1.2.3-24-g4f1b