processmaker
processmaker copied to clipboard
FOUR-18912 Fix get data in tasks endpoint
Issue & Reproduction Steps
/api/1.0/tasks endpoint failed becuase an exception in DataManager. Cause: Missing scenario when task endpoint was improved in FOUR-16575 https://github.com/ProcessMaker/processmaker/pull/7123
Solution
- Consider the parameter
includes=datato load the request data.
How to Test
Call the api /api/1.0/task?include=data
Related Tickets & Packages
- https://processmaker.atlassian.net/browse/FOUR-18912
Code Review Checklist
- [x] I have pulled this code locally and tested it on my instance, along with any associated packages.
- [x] This code adheres to ProcessMaker Coding Guidelines.
- [x] This code includes a unit test or an E2E test that tests its functionality, or is covered by an existing test.
- [x] This solution fixes the bug reported in the original ticket.
- [x] This solution does not alter the expected output of a component in a way that would break existing Processes.
- [x] This solution does not implement any breaking changes that would invalidate documentation or cause existing Processes to fail.
- [x] This solution has been tested with enterprise packages that rely on its functionality and does not introduce bugs in those packages.
- [x] This code does not duplicate functionality that already exists in the framework or in ProcessMaker.
- [x] This ticket conforms to the PRD associated with this part of ProcessMaker.