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
|
marr_date_ok = marr_date > 0
|
||||||
married = self.obj.get_relationship() == gen.lib.FamilyRelType.MARRIED
|
married = self.obj.get_relationship() == gen.lib.FamilyRelType.MARRIED
|
||||||
if not married and marr_date_ok:
|
if not married and marr_date_ok:
|
||||||
return False
|
return self.get_message
|
||||||
return True
|
|
||||||
|
|
||||||
def get_message(self):
|
def get_message(self):
|
||||||
return _("Marriage event but not married")
|
return _("Marriage event but not married")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user