summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2006-08-25 06:31:03 +0200
committerlpsolit%gmail.com <>2006-08-25 06:31:03 +0200
commit81c13474d68473aa68932c14e6ddaef858a2e91e (patch)
tree0d13ee2838a6557f616e3e512ababae56d3ea881
parent1505a9da4070e5364139f79e531cecfb14e20faa (diff)
downloadbugzilla-81c13474d68473aa68932c14e6ddaef858a2e91e.tar.gz
bugzilla-81c13474d68473aa68932c14e6ddaef858a2e91e.tar.xz
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
-rwxr-xr-xBugzilla/Bug.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm
index 65606e3f6..8c61a657b 100755
--- a/Bugzilla/Bug.pm
+++ b/Bugzilla/Bug.pm
@@ -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 {