Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#2363 closed Bug (fixed)

VisitTime.getVisitInformationPerServerTime: Empty hours are not returned

Reported by: Herzult Owned by: matt
Priority: normal Milestone: 1.4 - Piwik 1.4
Component: Core Keywords:
Cc: Sensitive: no

Description

When you request the VisitTime.getVisitInformationPerServerTime for a date having no visit, it doesn't return 0 but an empty array.

I think the API should return the 0 value for every past date when there is no visit. The empty response should be reserved for future dates (that doesn't exist). So the response is predictable.

Change History (3)

comment:1 Changed 3 years ago by matt (mattab)

  • Milestone set to 1.4 - Piwik 1.4
  • Owner set to matt

comment:2 Changed 3 years ago by matt (mattab)

  • Resolution set to fixed
  • Status changed from new to closed

(In [4583]) Fixes #2363

comment:3 Changed 3 years ago by matt (mattab)

  • Summary changed from Emtpy dates are not returned to VisitTime.getVisitInformationPerServerTime: Empty hours are not returned
Note: See TracTickets for help on using tickets.