AOW Workflow actions are wiped if save button is pressed before page finishes loading #5019

Open
opened 2026-02-20 16:28:02 -05:00 by deekerman · 0 comments
Owner

Originally created by @kale1d0code on GitHub (May 24, 2023).

Issue

When editing AOW workflows. If a user saves the form before the actions are populated with their configuration, the configuration for these actions would be wiped.

Expected Behavior

AOW Workflows to not wipe actions on save.

Actual Behavior

AOW Workflows actions are blank after saving workflow.

Possible Fix

remove javascript init dependency.
it should be possible to dump the configuration into HTML using a smarty template, so all this information is available at page load OR prevent saving the record until all items are ready.
tbh round trips to server is typically a terrible idea.

Steps to Reproduce

  1. create a workflow with actions
  2. edit workflow and save workflow before action config populates

Context

Your Environment

  • SuiteCRM Version used: 7.13.1
  • Browser name and version (e.g. Chrome Version 51.0.2704.63 (64-bit)): 113.0.5672.126 (Official Build) (64-bit)
  • Environment name and version (e.g. MySQL, PHP 7): PHP 7.4.25 | MariaDB 10.9.4
  • Operating System and version (e.g Ubuntu 16.04): Debian GNU/Linux 10 (buster)
Originally created by @kale1d0code on GitHub (May 24, 2023). <!--- Provide a general summary of the issue in the **Title** above --> <!--- Before you open an issue, please check if a similar issue already exists or has been closed before. ---> <!--- If you have discovered a security risk please report it by emailing security@suitecrm.com. This will be delivered to the product team who handle security issues. Please don't disclose security bugs publicly until they have been handled by the security team. ---> <!--- Please be aware that as of the 31st January 2022 we no longer support 7.10.x. New issues referring to 7.10.x will only be valid if applicable to 7.12.x and above. If your issue is still applicable in 7.12.x, please create the issue following the template below --> #### Issue When editing AOW workflows. If a user saves the form before the actions are populated with their configuration, the configuration for these actions would be wiped. <!--- Provide a more detailed introduction to the issue itself, and why you consider it to be a bug --> <!--- Ensure that all code ``` is surrounded ``` by triple back quotes. This can also be done over multiple lines --> #### Expected Behavior <!--- Tell us what should happen --> AOW Workflows to not wipe actions on save. #### Actual Behavior <!--- Tell us what happens instead --> AOW Workflows actions are blank after saving workflow. <!--- Also please check relevant logs (suitecrm.log, php error.log etc.) --> #### Possible Fix remove javascript init dependency. it should be possible to dump the configuration into HTML using a smarty template, so all this information is available at page load OR prevent saving the record until all items are ready. tbh round trips to server is typically a terrible idea. <!--- Not obligatory, but suggest a fix or reason for the bug --> #### Steps to Reproduce <!--- Provide a link to a live example, or an unambiguous set of steps to --> <!--- reproduce this bug include code to reproduce, if relevant --> 1. create a workflow with actions 2. edit workflow and save workflow before action config populates 3. 4. #### Context <!--- How has this bug affected you? What were you trying to accomplish? --> <!--- If you feel this should be a low/medium/high priority then please state so --> #### Your Environment <!--- Include as many relevant details about the environment you experienced the bug in --> * SuiteCRM Version used: 7.13.1 * Browser name and version (e.g. Chrome Version 51.0.2704.63 (64-bit)): 113.0.5672.126 (Official Build) (64-bit) * Environment name and version (e.g. MySQL, PHP 7): PHP 7.4.25 | MariaDB 10.9.4 * Operating System and version (e.g Ubuntu 16.04): Debian GNU/Linux 10 (buster)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/SuiteCRM-SuiteCRM#5019
No description provided.