testingrule for 2307: return string rather than true/false
svn: r13010
This commit is contained in:
parent
691088d116
commit
192637811d
@ -1508,8 +1508,7 @@ class MarriedRelation(FamilyRule):
|
||||
marr_date_ok = marr_date > 0
|
||||
married = self.obj.get_relationship() == gen.lib.FamilyRelType.MARRIED
|
||||
if not married and marr_date_ok:
|
||||
return False
|
||||
return True
|
||||
return self.get_message
|
||||
|
||||
def get_message(self):
|
||||
return _("Marriage event but not married")
|
||||
|
Loading…
Reference in New Issue
Block a user