From ce07c7e15f7bde732147c29aaba3b35c42eea847 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Tue, 24 Dec 2013 09:28:37 -0500 Subject: [PATCH] Added missing Handle in to_struct in refbase --- gramps/gen/lib/refbase.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gramps/gen/lib/refbase.py b/gramps/gen/lib/refbase.py index 873ab6447..d4f7bb398 100644 --- a/gramps/gen/lib/refbase.py +++ b/gramps/gen/lib/refbase.py @@ -70,7 +70,8 @@ class RefBase(object): :returns: Returns a struct containing the data of the object. :rtype: str """ - return self.ref + ## Return name of referenced item (remove "Ref" from name) + return Handle(self.__class__.__name__[:-3], self.ref) @classmethod def from_struct(cls, struct):