Skip to content

Commit

Permalink
ContactGroupController: Don't fetch deleted contactgroup_member
Browse files Browse the repository at this point in the history
  • Loading branch information
sukhwinder33445 committed Jul 10, 2024
1 parent 7ebd14e commit f841484
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions application/controllers/ContactGroupController.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,11 @@ public function indexAction(): void

$this->addControl(new HtmlElement('div', new Attributes(['class' => 'header']), Text::create($group->name)));

$contacts = $group
->contact
->filter(Filter::equal('contactgroup_member.deleted', 'n'));
$contacts = Contact::on(Database::get())
->filter(Filter::all(
Filter::equal('contactgroup_member.contactgroup_id', $groupId),
Filter::equal('contactgroup_member.deleted', 'n')
));

$this->addControl($this->createPaginationControl($contacts));
$this->addControl($this->createLimitControl());
Expand Down

0 comments on commit f841484

Please sign in to comment.