diff options
author | Frédéric Buclin <LpSolit@gmail.com> | 2016-01-05 14:47:05 +0100 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2016-01-05 14:47:05 +0100 |
commit | f7293523ca164bc5726c98be8fbdfef74d952fe1 (patch) | |
tree | c9745899f87b86df90a2ab0664a16e3d0fb94e42 | |
parent | 04004a62e2f190d6cfb3bd6965e9054125b56c47 (diff) | |
download | bugs-f7293523ca164bc5726c98be8fbdfef74d952fe1.tar bugs-f7293523ca164bc5726c98be8fbdfef74d952fe1.tar.gz bugs-f7293523ca164bc5726c98be8fbdfef74d952fe1.tar.bz2 bugs-f7293523ca164bc5726c98be8fbdfef74d952fe1.tar.xz bugs-f7293523ca164bc5726c98be8fbdfef74d952fe1.zip |
Bug 1045782: Existing URLs in the See Also field should not throw an error when the bug is displayed
r/a=dkl
-rw-r--r-- | Bugzilla/BugUrl.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Bugzilla/BugUrl.pm b/Bugzilla/BugUrl.pm index 1e836ca1e..1d75fe8f1 100644 --- a/Bugzilla/BugUrl.pm +++ b/Bugzilla/BugUrl.pm @@ -108,8 +108,9 @@ sub _do_list_select { my $objects = $class->SUPER::_do_list_select(@_); foreach my $object (@$objects) { - eval "use " . $object->class; die $@ if $@; - bless $object, $object->class; + eval "use " . $object->class; + # If the class cannot be loaded, then we build a generic object. + bless $object, ($@ ? 'Bugzilla::BugUrl' : $object->class); } return $objects |