Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1232426

Summary: Unable to modify the HTML component in a form by clicking on "Apply" button in BPM Suite 6.1.0
Product: [Retired] JBoss BPMS Platform 6 Reporter: Amana <ajuricic>
Component: Form ModelerAssignee: Pere Fernàndez <pere.fernandez>
Status: CLOSED EOL QA Contact: Marián Macik <mmacik>
Severity: high Docs Contact:
Priority: high    
Version: 6.1.0CC: kverlaen, mbaluch, mmacik
Target Milestone: ER4   
Target Release: 6.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-27 20:09:21 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Amana 2015-06-16 17:57:11 UTC
Description of problem:
After changing a HTML component in a form from a Human Task, the change is missed after clicking on "Apply" button. You will need to click on "Source" -> add your changes/content -> click on "Source" again" and then click on "Apply", so it works.

Version-Release number of selected component (if applicable):
BPM Suite 6.1.0

How reproducible:
Always

Steps to Reproduce:
1. Create a simple task with one HT;
2. Edit HT form;
3. Select and drag the HTML component to the form;
4. Click in the HTML component and in property button;
5. Click on "Source" button and add the code below replacing the HTML:
     <p>
        Pressione o botão abaixo
     </p>
     <button onclick="alert('Hello World');">Test</button>
6. Click on "Apply" button.

Actual results:
Everything will be missed.

Expected results:
The changes should be applied.

Additional info:
A workaround would be click on "Source" button again, after adding the changes and then on "Apply" button.

Comment 1 Amana 2015-06-16 17:57:50 UTC
Is it a real bug or an expected behavior?

Comment 3 Pere Fernàndez 2015-09-23 14:42:06 UTC
Modified the component that handles the HTML edition in order to store the changes before the apply button is pressed.

Commit (master): https://github.com/droolsjbpm/jbpm-form-modeler/commit/62c45e941b8aba039f53fef684f7ea759d078a61

Commit (6.3.x): https://github.com/droolsjbpm/jbpm-form-modeler/commit/1803f9721e24fc3848c67ee3bc15d09109ed0c78

Comment 4 Marián Macik 2015-10-27 14:09:07 UTC
HTML content is now properly stored when apply button is pressed. Verified with 6.2.0.ER4.