-
Bug Report
-
Resolution: Fixed
-
L3 - Default
-
7.13.4, 7.12.10, 7.11.17, 7.14.0-alpha3
-
None
Steps to reproduce
Submit an embedded start form that prevents the submission of the form.
Expected behavior
The form is not submitted, no error message is shown
Observed behavior
The form is not submitted and an error message is shown
Reasoning
- A prevented submission of a form is not an error
- The developer should be able to decide whether an error is shown or not
Root cause
- The sdk-js throws an error when the submit is prevented [1]
- The Tasklist start process modal shows this error notification [2]
Solutions
- Skip error notification when submission is prevented
- Don't throw an error on preventing the form submission
[1] https://github.com/camunda/camunda-bpm-webapp/blob/master/camunda-bpm-sdk-js/lib/forms/camunda-form.js#L472-L476
[2] https://github.com/camunda/camunda-bpm-webapp/blob/bbfb11d0cd5a33c070eb2631aa11dbd955b1768b/ui/tasklist/client/scripts/process/plugins/action/modals/cam-tasklist-process-start-modal.js#L273-L276
This is the controller panel for Smart Panels app
[CAM-12405] Tasklist: Embedded start forms produce non-configurable error when submission is prevented
Affects Version/s | New: 7.11.17 [ 16212 ] | |
Affects Version/s | New: 7.12.10 [ 16210 ] | |
Affects Version/s | New: 7.13.4 [ 16208 ] | |
Affects Version/s | New: 7.14.0-alpha3 [ 16220 ] |
Description |
Original:
h3. Steps to reproduce
Submit an embedded start form that prevents the submission of the form. h3. Expected behavior The form is not submitted, no error message is shown h3. Observed behavior The form is not submitted and an error message is shown h3. Reasoning * A prevented submission of a form is not an error * The developer should be able to decide whether an error is shown or not h3. Root cause |
New:
h3. Steps to reproduce
Submit an embedded start form that prevents the submission of the form. h3. Expected behavior The form is not submitted, no error message is shown h3. Observed behavior The form is not submitted and an error message is shown h3. Reasoning * A prevented submission of a form is not an error * The developer should be able to decide whether an error is shown or not h3. Root cause * The {{sdk-js}} throws an error when the submit is prevented [1] * The Tasklist start process modal shows this error notification [2] h3. Solutions # Skip error notification when submission is prevented # Don't throw an error on preventing the form submission [1] https://github.com/camunda/camunda-bpm-webapp/blob/master/camunda-bpm-sdk-js/lib/forms/camunda-form.js#L472-L476 [2] https://github.com/camunda/camunda-bpm-webapp/blob/bbfb11d0cd5a33c070eb2631aa11dbd955b1768b/ui/tasklist/client/scripts/process/plugins/action/modals/cam-tasklist-process-start-modal.js#L273-L276 |
Mentioned Roles |
Mentioned Groups |
Mentioned Roles |
Mentioned Groups |
Assignee | New: Thorben Lindhauer [ thorben.lindhauer ] |
Mentioned Roles |
Mentioned Groups |