From: Frédéric Buclin Date: Tue, 5 Jan 2016 13:47:05 +0000 (+0100) Subject: Bug 1045782: Existing URLs in the See Also field should not throw an error when the... X-Git-Tag: release-5.0.3~36 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=f7293523ca164bc5726c98be8fbdfef74d952fe1;p=thirdparty%2Fbugzilla.git Bug 1045782: Existing URLs in the See Also field should not throw an error when the bug is displayed r/a=dkl --- diff --git a/Bugzilla/BugUrl.pm b/Bugzilla/BugUrl.pm index 1e836ca1e8..1d75fe8f10 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