diff options
Diffstat (limited to 'Bugzilla/Field.pm')
-rw-r--r-- | Bugzilla/Field.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Bugzilla/Field.pm b/Bugzilla/Field.pm index 6555bba96..34a1818de 100644 --- a/Bugzilla/Field.pm +++ b/Bugzilla/Field.pm @@ -126,6 +126,7 @@ use constant SQL_DEFINITIONS => { FIELD_TYPE_FREETEXT, { TYPE => 'varchar(255)' }, FIELD_TYPE_SINGLE_SELECT, { TYPE => 'varchar(64)', NOTNULL => 1, DEFAULT => "'---'" }, + FIELD_TYPE_TEXTAREA, { TYPE => 'MEDIUMTEXT' }, }; # Field definitions for the fields that ship with Bugzilla. @@ -254,7 +255,7 @@ sub _check_type { my $saved_type = $type; # The constant here should be updated every time a new, # higher field type is added. - (detaint_natural($type) && $type <= FIELD_TYPE_MULTI_SELECT) + (detaint_natural($type) && $type <= FIELD_TYPE_TEXTAREA) || ThrowCodeError('invalid_customfield_type', { type => $saved_type }); return $type; } |