Skip to content

FOUR-9440 - Disable Publish PmBlock button at each request#5038

Merged
ryancooley merged 1 commit into
developfrom
observation/FOUR-9440
Jul 20, 2023
Merged

FOUR-9440 - Disable Publish PmBlock button at each request#5038
ryancooley merged 1 commit into
developfrom
observation/FOUR-9440

Conversation

@estebangallego
Copy link
Copy Markdown
Contributor

@estebangallego estebangallego commented Jul 20, 2023

Issue & Reproduction Steps

When creating a PM Block from a Process, the Publish button will create multiple PM blocks when you click on Publish several times in the same request.

  1. Click on Process or create a process
  2. Click on the ellipsis menu
  3. Click on Save as PM Block
  4. Add the Pm Block info in the Create Modal
  5. Click on Publish MULTIPLE times

You will notice that multiple PM Blocks will be created a the same time.

Solution

  • Disabled Publish button at each Post request.

How to Test

Follow the reproduction steps and you will notice that the Publish button will be disabled and only one POST request will be sent.

Related Tickets & Packages

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.

@processmaker-sonarqube
Copy link
Copy Markdown

@mcraeteisha mcraeteisha self-requested a review July 20, 2023 21:33
Copy link
Copy Markdown
Contributor

@mcraeteisha mcraeteisha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved!

@ryancooley ryancooley merged commit 8d2d80e into develop Jul 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants