Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Preview as Learner" Inflates Learner Count in Reports #7750

Open
amroland opened this issue Feb 15, 2025 · 0 comments
Open

"Preview as Learner" Inflates Learner Count in Reports #7750

amroland opened this issue Feb 15, 2025 · 0 comments
Labels
[Status] Needs Triage Issue needs to be triaged [Type] Bug

Comments

@amroland
Copy link

Description
When an admin previews a course as a learner using the "Preview as Learner" feature on the front end and does not log out of this mode, it artificially inflates the learner count displayed in certain sections of the Sensei LMS admin interface. Specifically:

  1. In Sensei LMS > Learners, the total learner count above the list includes this virtual learner. However, the actual learner list displays the correct number of real learners.
  2. In Sensei LMS > Reports, the course learner count similarly includes this virtual learner.

This discrepancy can lead to confusion, as the total learner count displayed above the list or in reports does not match the actual learners enrolled in the course.

Steps to Reproduce

  1. Log in as an admin.
  2. Navigate to a course on the front-end.
  3. Use the "Preview as Learner" feature.
  4. Do not log out of the "Preview as Learner" mode.
  5. Check the total learner count in Sensei LMS > Learners or Sensei LMS > Reports.

Expected Behavior
The "Preview as Learner" feature should not affect the total learner count displayed in any Report section.

Actual Behavior
The virtual learner from the "Preview as Learner" feature is incorrectly included in the total learner count above the list and in reports, but not in the detailed learner list.

Screenshot / Video

Image

Environment Details

  • PHP: 8.1.30
  • Sensei LMS Version: 4.24.5 | Sensei Pro Version: 1.24.2
  • WordPress version: 6.7.2
@amroland amroland added [Status] Needs Triage Issue needs to be triaged [Type] Bug labels Feb 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Status] Needs Triage Issue needs to be triaged [Type] Bug
Projects
None yet
Development

No branches or pull requests

1 participant