Commit 81c13474 authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 350083: Bugzilla::Bug::AUTOLOAD tries to find Bugzilla::Bug::confess() when…

Bug 350083: Bugzilla::Bug::AUTOLOAD tries to find Bugzilla::Bug::confess() when a bug method doesn't exist - Patch by Frédéric Buclin <LpSolit@gmail.com> r=Colin a=myk
parent 1505a9da
......@@ -1767,7 +1767,10 @@ sub AUTOLOAD {
$attr =~ s/.*:://;
return unless $attr=~ /[^A-Z]/;
confess("invalid bug attribute $attr") unless _validate_attribute($attr);
if (!_validate_attribute($attr)) {
require Carp;
Carp::confess("invalid bug attribute $attr");
}
no strict 'refs';
*$AUTOLOAD = sub {
......
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