Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AEM Core Components Form Action Dialog] same property names on more than 1 form action saves the property as multiarray #2056

Open
punithshetty90 opened this issue Mar 6, 2022 · 0 comments

Comments

@punithshetty90
Copy link

punithshetty90 commented Mar 6, 2022

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

  • 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)
@punithshetty90 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
punithshetty90 added a commit to punithshetty90/aem-core-wcm-components that referenced this issue Mar 24, 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
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

No branches or pull requests

1 participant