diff options
| author | Greg Roach <greg@subaqua.co.uk> | 2022-02-04 11:36:17 +0000 |
|---|---|---|
| committer | Greg Roach <greg@subaqua.co.uk> | 2022-02-04 12:11:51 +0000 |
| commit | 1baf69dec287f195fbbefc3bae3c0b33957a89c3 (patch) | |
| tree | 9715836b9bed3406fa9836d0638dbc891974c3d8 /resources/views/modules/relatives/family.phtml | |
| parent | 0ef51d00682cd5b043dc8347d67f1d65f4a47111 (diff) | |
| download | webtrees-1baf69dec287f195fbbefc3bae3c0b33957a89c3.tar.gz webtrees-1baf69dec287f195fbbefc3bae3c0b33957a89c3.tar.bz2 webtrees-1baf69dec287f195fbbefc3bae3c0b33957a89c3.zip | |
Add support for SEX X (other)
Diffstat (limited to 'resources/views/modules/relatives/family.phtml')
| -rw-r--r-- | resources/views/modules/relatives/family.phtml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/resources/views/modules/relatives/family.phtml b/resources/views/modules/relatives/family.phtml index 8690998521..9eea7d85f6 100644 --- a/resources/views/modules/relatives/family.phtml +++ b/resources/views/modules/relatives/family.phtml @@ -34,7 +34,7 @@ use Fisharebest\Webtrees\Services\RelationshipService; $found |= !$fact->isPendingDeletion(); $person = $fact->target(); if ($person instanceof Individual) { - $row_class = 'wt-gender-' . $person->sex(); + $row_class = 'wt-sex-' . strtolower($person->sex()); if ($fact->isPendingAddition()) { $row_class .= ' wt-new'; } elseif ($fact->isPendingDeletion()) { @@ -71,7 +71,7 @@ use Fisharebest\Webtrees\Services\RelationshipService; $person = $fact->target(); if ($person instanceof Individual) { $found |= !$fact->isPendingDeletion(); - $row_class = 'wt-gender-' . $person->sex(); + $row_class = 'wt-sex-' . strtolower($person->sex()); if ($fact->isPendingAddition()) { $row_class .= ' wt-new'; } elseif ($fact->isPendingDeletion()) { @@ -157,7 +157,7 @@ use Fisharebest\Webtrees\Services\RelationshipService; foreach ($family->facts(['CHIL'], false, $fam_access_level) as $fact) { $person = $fact->target(); if ($person instanceof Individual) { - $row_class = 'wt-gender-' . $person->sex(); + $row_class = 'wt-sex-' . strtolower($person->sex()); if ($fact->isPendingAddition()) { $child_number++; $row_class .= ' new'; |
