Skip to content

Commit

Permalink
EditCounter: ensure keys for month_counts endpoint are strings
Browse files Browse the repository at this point in the history
Bug: T292031
  • Loading branch information
MusikAnimal committed Apr 28, 2024
1 parent 9db7750 commit 686b1aa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Controller/EditCounterController.php
Original file line number Diff line number Diff line change
Expand Up @@ -735,6 +735,9 @@ public function monthCountsApiAction(
unset($ret['yearLabels']);
unset($ret['monthLabels']);

// Ensure 'totals' keys are strings, see T292031.
$ret['totals'] = (object)$ret['totals'];

return $this->getFormattedApiResponse($ret);
}

Expand Down

0 comments on commit 686b1aa

Please sign in to comment.