summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Bug.pm
diff options
context:
space:
mode:
authorMax Kanat-Alexander <mkanat@bugzilla.org>2010-02-11 01:00:32 +0100
committerMax Kanat-Alexander <mkanat@bugzilla.org>2010-02-11 01:00:32 +0100
commitf6fc02e572ba07782a272e8fc8f9f45e13ba4896 (patch)
treef88912a82e4a85661d61716e5f3975ea35ed838b /Bugzilla/Bug.pm
parent80477beb472a83f6fa711358372db9edf6209c39 (diff)
downloadbugzilla-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.pm5
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 => {