Commit ec2e4a09 authored by Frédéric Buclin's avatar Frédéric Buclin

Bug 528918: Bugzilla::Object->match() shouldn't call _check_field() when the…

Bug 528918: Bugzilla::Object->match() shouldn't call _check_field() when the field being passed can be trusted (deserialising the DB schema is slow) r=dkl a=LpSolit
parent 38cbb6ac
......@@ -214,8 +214,11 @@ sub match {
}
next;
}
$class->_check_field($field, 'match');
# It's always safe to use the field defined by classes as being
# their ID field. In particular, this means that new_from_list()
# is exempted from this check.
$class->_check_field($field, 'match') unless $field eq $class->ID_FIELD;
if (ref $value eq 'ARRAY') {
# IN () is invalid SQL, and if we have an empty list
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment