Skip to content

[Bug] Orders menu badge inaccurately shows "1" when all non-completed orders are in the Trash #2481

@petrus9

Description

@petrus9

Description
The Orders badge in the Tutor LMS admin menu is displaying a notification count of "1" even though there are no active orders requiring attention. All non-completed orders have been moved to the Trash, but the badge does not clear.

Environment

  • WordPress: 6.9.4
  • Tutor LMS Pro: 3.9.2

Steps to Reproduce

  1. Have a mix of order statuses in the system.
  2. Move all non-completed orders (Unpaid, Refunded, Cancelled, etc.) to the Trash.
  3. Look at the Tutor LMS admin menu in the WordPress sidebar.
  4. Observe the Orders notification badge.

Actual Behavior
The Orders menu badge persists and displays a "1".
For context, my exact current order breakdown is:

  • 10 Completed / Paid
  • 5 Unpaid (in Trash)
  • 1 Refunded (in Trash)

Despite everything requiring attention being moved to the Trash, the badge still indicates there is 1 item needing review.

Expected Behavior
Once all non-completed orders are moved to the Trash, the menu badge should clear completely (or show 0), as there is nothing left in the active order queue that requires an administrator's attention.

Impact
This creates a permanent false alert in the WordPress admin dashboard. It renders the notification badge useless, as administrators cannot rely on it to know if a real order actually needs their attention.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions