stable

Clone or download

Read-only

request #26778 Parent artifacts REST route sometimes does not return any JSON

How to test: - Prepare a single project (not a Team linked to a Program) - Prepare a tracker that has no parent, for example Bugs or Kanban tasks - GET trackers/:id/parent_artifacts - With this patch, it should return an empty JSON array [] and X-PAGINATION-SIZE header should be set with value 0. - Without this patch, it didn't return any JSON and the header was not set. Change-Id: I23c3a518b50d4b873ee29dfaa83adbd0c75479e5

Modified Files

Name
M plugins/tracker/include/REST/v1/TrackersResource.class.php +9 −9 Go to diff View file
M tests/rest/tests/TrackersTest.php +30 −13 Go to diff View file