SparkDevNetwork / Rock

An open source CMS, Relationship Management System (RMS) and Church Management System (ChMS) all rolled into one.
http://www.rockrms.com
580 stars 353 forks source link

EditFamily Displays Child-related Relationships When Adding Adults to a New Family #5982

Closed tcavaletto closed 3 months ago

tcavaletto commented 3 months ago

Description

Submitted on behalf of Trader's Point

We're running into an issue on New Family Registration in Checkin where when adding adults the child role still shows: image

This is specifically when dealing with custom relationship types. Namely, we use custom relationship types to differ between biological / adopted and foster children. The problem is that the role is displayed below the relationship if it's not the stock Child/Adult relationship regardless of whether or not the person is in the adult role: https://github.com/SparkDevNetwork/Rock/blob/develop/RockWeb/Blocks/CheckIn/EditFamily.ascx.cs#L477.

We'd like a change to change this line to the following: if ( familyPersonState.ChildRelationshipToAdult > 0 && _knownRelationshipLookup != null && !familyPersonState.IsAdult) to support hiding the relationship for adult users to prevent confusion.

Actual Behavior

The relationship should be hidden, since the user is an adult, not a child.

Expected Behavior

Since this is not the stock relationship, it's displayed.

Steps to Reproduce

Issue Confirmation

Rock Version

16.4

Client Culture Setting

en-US