Skip to content

Statistics: Sum of new during period is 0 for custom date range #4986

Description

@claudiush

Current Behavior

When selecting a custom date range for the Statistics graph the "New during range" cells always show 0 :(

Steps to Reproduce

  1. Open "Statistics" in admin
  2. Select a custom date range
  3. Observe the value fields in the mini stats table on top left

Expected Behavior

Selecting a custom date range should calculate the sum of new items per each data type (user, discussions, posts) that occured during that custom range. This would be consistent with how this Statistics works with the pre-defined date ranges.

Screenshots

Image

Environment

  • Flarum version: 1.8.19 (I don't have a 2.0.0-rc.7 community with sufficient historic data. Worth checking on Discuss' Statistics

Output of php flarum info

No response

Possible Solution

No response

Additional Context

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions