bugfix/FOUR-28985 Submit action is not working when a new Inbox rule is created#8705
bugfix/FOUR-28985 Submit action is not working when a new Inbox rule is created#8705
Submit action is not working when a new Inbox rule is created#8705Conversation
|
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.
This is the final PR Bugbot will review for you during this billing cycle
Your free Bugbot reviews will reset on February 21
Details
Your team is on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle for each member of your team.
To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.
| reload() { | ||
| this.formData = {}; | ||
| this.iframeContentWindow.location.reload(); | ||
| }, |
There was a problem hiding this comment.
Stale button data persists after iframe reload
Medium Severity
The reload() method resets formData to empty but does not reset lastClickedButton. Similarly, the propInboxQuickFill watcher triggers an iframe reload without clearing lastClickedButton. If a user clicked a button before the reload, the stale button info remains and could be used as the fallback when the form is submitted after reload, potentially reporting the wrong button action for the inbox rule.







Issue & Reproduction Steps
Submit actionis not working when anew Inbox ruleis createdSolution
submit button listener
How to Test
Create a simple process (start event - task - task - end event)
Create a simple screen
Add a line input control
Add a submit button
Assign this screen in both tasks
Run a Case
Fill fields
Press submit button
Run other Case
Press Create rule button when screen is displaying
Check Save and reuse filled data field
Add a date in the deactivation date field
Press Next button
Check Submit after filling field
Select a submit button on the screen
Related Tickets & Packages
https://processmaker.atlassian.net/browse/FOUR-28985
Note
Medium Risk
Touches cross-window iframe event handling and adds DOM click interception, which can be brittle (cross-origin, timing) and may affect submit behavior across embedded task previews.
Overview
Fixes cases where creating a new Inbox rule caused the Submit action to emit unusable data by adding a fallback path that captures submit-button metadata directly from the embedded task preview iframe.
InboxRuleFillData.vuenow tracks the last clicked submit button (name/label/value), emits that data whenformSubmitevents arrive without valid button info, and hooks an iframe click listener aftertaskReadyto populate this fallback (with a guarded cross-origin warning).Written by Cursor Bugbot for commit f19c034. This will update automatically on new commits. Configure here.