03288: [XML import] Custom family event role type is ignored on Family Events

svn: r13447
This commit is contained in:
Benny Malengier 2009-10-28 16:15:48 +00:00
parent dc85030a20
commit 61130b11ef

View File

@ -162,6 +162,10 @@ class GrampsType(object):
if value in self._E2IMAP: if value in self._E2IMAP:
self.__value = self._E2IMAP[value] self.__value = self._E2IMAP[value]
self.__string = u'' self.__string = u''
if self.__value == self._CUSTOM:
#if the custom event is actually 'Custom' then we should save it
# with that string value. That is, 'Custom' is in _E2IMAP
self.__string = value
else: else:
self.__value = self._CUSTOM self.__value = self._CUSTOM
self.__string = value self.__string = value