diff --git a/src/plugins/webreport/WebCal.py b/src/plugins/webreport/WebCal.py index 655f665b9..231177b06 100644 --- a/src/plugins/webreport/WebCal.py +++ b/src/plugins/webreport/WebCal.py @@ -1082,7 +1082,8 @@ class WebCalReport(Report): name = gen.lib.Name(married_name) else: name = gen.lib.Name(primary_name) - name.set_surname(maiden_name) + surname_obj = name.get_primary_surname() + surname_obj.set_surname(maiden_name) else: name = gen.lib.Name(primary_name) name.set_display_as(self.name_format)