mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-27 17:15:02 +00:00
[Household - list members during membership] avoid to show two membersship with the same person
This commit is contained in:
@@ -11,6 +11,7 @@ and this project adheres to
|
|||||||
## Unreleased
|
## Unreleased
|
||||||
|
|
||||||
<!-- write down unreleased development here -->
|
<!-- write down unreleased development here -->
|
||||||
|
* [Person/Household list] when listing other simultaneous members of an household, exclude the members on person, not on members (avoid to show two membersship with the same person)
|
||||||
|
|
||||||
## Test releases
|
## Test releases
|
||||||
|
|
||||||
|
@@ -358,7 +358,7 @@ class Household
|
|||||||
$membership->getEndDate()
|
$membership->getEndDate()
|
||||||
)->filter(
|
)->filter(
|
||||||
static function (HouseholdMember $m) use ($membership) {
|
static function (HouseholdMember $m) use ($membership) {
|
||||||
return $m !== $membership;
|
return $m->getPerson() !== $membership->getPerson();
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user