Skip to content

Commit

Permalink
Update dgi_members.module
Browse files Browse the repository at this point in the history
Co-authored-by: JojoVes <JojoVes@users.noreply.github.com>
  • Loading branch information
Prashant-bd and JojoVes authored Apr 18, 2024
1 parent d214dd7 commit d4c29a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dgi_members.module
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,8 @@ function dgi_members_entity_is_member(EntityInterface $entity) {
* FALSE if no node available, or the active Node.
*/
function dgi_members_get_active() {
return \Drupal::service('dgi_members.entity_service')->retrieveActiveMember();
$active_member = \Drupal::request()->query->get('active_member');
return \Drupal::service('dgi_members.entity_service')->retrieveActiveMember($active_member);
}

/**
Expand Down

0 comments on commit d4c29a6

Please sign in to comment.