processmaker icon indicating copy to clipboard operation
processmaker copied to clipboard

FOUR-17680: [39200] AutoSave feature does not save correctly for New Line

Open henryjonathanquispe opened this issue 1 year ago • 2 comments
trafficstars

FOUR-17680: [39200] AutoSave feature does not save correctly for New Line

##STEPS TO REPRODUCE

  1. Create a new screen
  2. add a text area
  3. set textarea configuration to rich text
  4. add line input
  5. publish (Screenshot attached )
  6. Run a request and fill the text area with multiple lines.
  7. Make sure the autosave saves the form and then reload the page.
  8. 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

henryjonathanquispe avatar Oct 01 '24 16:10 henryjonathanquispe

QA server K8S was successfully deployed https://ci-2379591db9.engk8s.processmaker.net

tokensPM avatar Oct 01 '24 17:10 tokensPM

QA server K8S was successfully deployed https://ci-2379591db9.engk8s.processmaker.net

tokensPM avatar Oct 08 '24 14:10 tokensPM