diff options
author | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-02-11 01:00:32 +0100 |
---|---|---|
committer | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-02-11 01:00:32 +0100 |
commit | f6fc02e572ba07782a272e8fc8f9f45e13ba4896 (patch) | |
tree | f88912a82e4a85661d61716e5f3975ea35ed838b /Bugzilla/Bug.pm | |
parent | 80477beb472a83f6fa711358372db9edf6209c39 (diff) | |
download | bugzilla-f6fc02e572ba07782a272e8fc8f9f45e13ba4896.tar.gz bugzilla-f6fc02e572ba07782a272e8fc8f9f45e13ba4896.tar.xz |
Bug 545524: New Hook: object_validators
r=mkanat, a=mkanat (module owner)
Diffstat (limited to 'Bugzilla/Bug.pm')
-rw-r--r-- | Bugzilla/Bug.pm | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index 37df30707..336b9cfe1 100644 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -123,8 +123,6 @@ use constant REQUIRED_CREATE_FIELDS => qw( # There are also other, more complex validators that are called # from run_create_validators. sub VALIDATORS { - my $cache = Bugzilla->request_cache; - return $cache->{bug_validators} if defined $cache->{bug_validators}; my $validators = { alias => \&_check_alias, @@ -167,8 +165,7 @@ sub VALIDATORS { $validators->{$field->name} = $validator; } - $cache->{bug_validators} = $validators; - return $cache->{bug_validators}; + return $validators; }; use constant UPDATE_VALIDATORS => { |