processmaker
processmaker copied to clipboard
FOUR-17680: [39200] AutoSave feature does not save correctly for New Line
trafficstars
FOUR-17680: [39200] AutoSave feature does not save correctly for New Line
##STEPS TO REPRODUCE
- Create a new screen
- add a text area
- set textarea configuration to rich text
- add line input
- publish (Screenshot attached )
- Run a request and fill the text area with multiple lines.
- Make sure the autosave saves the form and then reload the page.
- Notice that the content in the text area is not the same.
Solution
- Into the ProcessMaker/Http/Controllers/Api/TaskDraftController.php in the update method , we added a validation to sanitize the data
Related Tickets & Packages
- https://processmaker.atlassian.net/browse/FOUR-17680
Code Review Checklist
- [ ] I have pulled this code locally and tested it on my instance, along with any associated packages.
- [ ] This code adheres to ProcessMaker Coding Guidelines.
- [ ] This code includes a unit test or an E2E test that tests its functionality, or is covered by an existing test.
- [ ] This solution fixes the bug reported in the original ticket.
- [ ] This solution does not alter the expected output of a component in a way that would break existing Processes.
- [ ] This solution does not implement any breaking changes that would invalidate documentation or cause existing Processes to fail.
- [ ] This solution has been tested with enterprise packages that rely on its functionality and does not introduce bugs in those packages.
- [ ] This code does not duplicate functionality that already exists in the framework or in ProcessMaker.
- [ ] This ticket conforms to the PRD associated with this part of ProcessMaker.
ci:next ci:deploy
QA server K8S was successfully deployed https://ci-2379591db9.engk8s.processmaker.net
QA server K8S was successfully deployed https://ci-2379591db9.engk8s.processmaker.net