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

Bug 1045782: Existing URLs in the See Also field should not throw an error when…

Bug 1045782: Existing URLs in the See Also field should not throw an error when the bug is displayed r/a=dkl
parent 04004a62
......@@ -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
......
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