[JSFIELD-44] Empty `formFields` property during 'init' action Created: 07/Sep/23  Updated: 31/Oct/23  Resolved: 31/Oct/23

Status: Closed
Project: Java Script UI (App and Dialog Fields)
Component/s: None
Affects Version/s: 2.0.2
Fix Version/s: 2.0.3

Type: Bug Priority: Neutral
Reporter: Martin Haderka Assignee: Sebastian Geschke
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File JSFIELD-44.mp4     PNG File Screenshot_of_Arc_test Pages_2023-09-07_at_12-07-56@2x.png     PNG File Screenshot_of_Arc_test Pages_2023-09-07_at_12-22-07@2x.png     PNG File image-2023-09-07-12-33-10-223.png    
Template:
Acceptance criteria:
Empty
Date of First Response:

 Description   

Steps to reproduce

  1. Start dx-core webapp with `magnolia-ui-framework-javascript` module (version 2.0.2)
  2. Use ui-framework-javascript-examples as light modules, and add `console.log(event.data.state)` to any HTML file under form-fields-lm/websresources. For example:  
  3. Open Pages app, create new page, choose `form-fields-lm` template, fill the dialog
  4. Open the newly created page
  5. Open Developer Tools, observe the Console
  6. Click on "Edit page properties"
  7. Check the console log, Observe the `formFields` value

Expected results

8. formFields will have values, eg:

{
changeHeight: "",
colorField: "",
conditionalField1: "",
conditionalField2: "",
emailField: "aa@aa.cz",
textField: "Egestas Nibh",
withParameters: ""
}

Actual results

8. formFields is empty:

[]

Note

Try again with `magnolia-ui-framework-javascript` module version 2.0.1
The `formFields` won't be empty



 Comments   
Comment by Teresa Miyar [ 25/Sep/23 ]

I've tested with magnolia 6.2.39 and it works, what version of Magnolia are you using? mhaderka

Comment by Martin Haderka [ 02/Oct/23 ]

tmiyar 
I tried it again with Magnolia 6.2.39, and the issue is still valid.

I uploaded a screen-recording JSFIELD-44.mp4

  • on the left is Magnolia 6.2.39 w/ magnolia-ui-framework-javascript-2.0.2.jar
  • on the right is Magnolia 6.2.39 w/ magnolia-ui-framework-javascript-2.0.1.jar

The issue is that `formFields` is empty in v2.0.2, during a 'init' action (event.data.action).

In the screen-recording it is possible to see that:

  • In v2.0.2 the `formFields` property is an empty array: [],
  • In v2.0.1 the `formFields` property is an object containing the defined keys and values

I'm able to provide the bundles if necessary.

Comment by Teresa Miyar [ 03/Oct/23 ]

Hi,

Still cannot reproduce your problem, are you using the latest version of the lm modules? Could you upload your failing bundle?

Comment by Teresa Miyar [ 06/Oct/23 ]

Hi,

I could reproduce your problem taking your light modules and install it in my web app, I think you are using and old version of the light modules, could you download the latest version of the light modules for the bundle that you have with the 2.0.2 version?

Comment by Teresa Miyar [ 31/Oct/23 ]

Issue identified and fixed.

Generated at Mon Feb 12 02:16:33 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.