Fix issue #1249: Wiki link to deleted reference problem
parent
bd11e51cc8
commit
785d5c3b09
|
@ -52,7 +52,7 @@ class TaigaReferencesPattern(Pattern):
|
|||
obj_ref = m.group(2)
|
||||
|
||||
instance = get_instance_by_ref(self.project.id, obj_ref)
|
||||
if instance is None:
|
||||
if instance is None or instance.content_object is None:
|
||||
return "#{}".format(obj_ref)
|
||||
|
||||
subject = instance.content_object.subject
|
||||
|
|
Loading…
Reference in New Issue