diff options
author | mkanat%bugzilla.org <> | 2009-01-22 05:08:35 +0100 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2009-01-22 05:08:35 +0100 |
commit | c7b2b76566b8258c676967537986e996c17c3d8d (patch) | |
tree | ead1d770b601720c2aac9bdfc3133cd56071d694 /Bugzilla/Field.pm | |
parent | fdfe948ab5eea11a0ce98b84044308a6f95adfa0 (diff) | |
download | bugzilla-c7b2b76566b8258c676967537986e996c17c3d8d.tar.gz bugzilla-c7b2b76566b8258c676967537986e996c17c3d8d.tar.xz |
Bug 472872: Add a field where people can put the URLs to Bugzilla bugs (from any Bugzilla installation)
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=dkl, a=mkanat
Diffstat (limited to 'Bugzilla/Field.pm')
-rw-r--r-- | Bugzilla/Field.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Bugzilla/Field.pm b/Bugzilla/Field.pm index 848daf74a..91e9bb8b4 100644 --- a/Bugzilla/Field.pm +++ b/Bugzilla/Field.pm @@ -228,6 +228,8 @@ use constant DEFAULT_FIELDS => ( {name => 'attach_data.thedata', desc => 'Attachment data'}, {name => 'attachments.isurl', desc => 'Attachment is a URL'}, {name => "owner_idle_time", desc => "Time Since Assignee Touched"}, + {name => 'see_also', desc => "See Also", + type => FIELD_TYPE_BUG_URLS}, ); ################ @@ -309,7 +311,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_BUG_ID) + (detaint_natural($type) && $type <= FIELD_TYPE_BUG_URLS) || ThrowCodeError('invalid_customfield_type', { type => $saved_type }); return $type; } |