You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current Behavior
Create 2-3 form actions with dialog and its property, make sure you have same property names in both the form dialog
Form Action1 -> Dialog (property1(name=."/p1", property2(name="./p2", property3(name="./p3")))
Form Action2 -> Dialog (property1(name=."/p1", property2(name="./p2", property3(name="./p4")))
Select one of the form field, fill the details and submit it
Ex: Select Form Action1 and submit, Below is what is saved on the AEM node,
p1 => String[] => property1 value,
p2 => String[] => property2 value,
p3 => String => property2 value
Since same name is stored in 2 different form action, on submit of form dialog, It sends both the properties from 2 form actions. Hence stores as String []
We need to make sure that only the properties from the form action select dropdown is submitted.
Expected behavior/code
p1 => String => property1 value
p2 => String => property2 value
p3 => String => property2 value
Environment
AEM 6.5 SP10
Core Components version: 2.18.0
JRE version
java version "1.8.0_202"
Java(TM) SE Runtime Environment (build 1.8.0_202-b08)
The text was updated successfully, but these errors were encountered:
punithshetty90
changed the title
If more than 1 form action dialog has the same name, on submit of dialog it saves as string array
[AEM Core Components Form Action Dialog] same property names on more than 1 form action saves the property as multiarray
Mar 6, 2022
Issue adobe#2052 : Fix required validation for property on Form Action dialog
Issue adobe#2056 : Fix the issue of saving the property as multiarray when the same name exists in diff form action dialog
Bug Report
Current Behavior
Create 2-3 form actions with dialog and its property, make sure you have same property names in both the form dialog
Form Action1 -> Dialog (property1(name=."/p1", property2(name="./p2", property3(name="./p3")))
Form Action2 -> Dialog (property1(name=."/p1", property2(name="./p2", property3(name="./p4")))
Select one of the form field, fill the details and submit it
Ex: Select Form Action1 and submit, Below is what is saved on the AEM node,
p1 => String[] => property1 value,
p2 => String[] => property2 value,
p3 => String => property2 value
Since same name is stored in 2 different form action, on submit of form dialog, It sends both the properties from 2 form actions. Hence stores as String []
We need to make sure that only the properties from the form action select dropdown is submitted.
Expected behavior/code
p1 => String => property1 value
p2 => String => property2 value
p3 => String => property2 value
Environment
java version "1.8.0_202"
Java(TM) SE Runtime Environment (build 1.8.0_202-b08)
The text was updated successfully, but these errors were encountered: