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

Empty dialog fields overwritten when reordering Multifield Panel Items #440

Closed
radmike opened this issue Apr 9, 2015 · 4 comments
Closed
Labels
Milestone

Comments

@radmike
Copy link

radmike commented Apr 9, 2015

Issue exists with the ACS Commons custom Multi Field Panel widget. Using the built-in dialog ordering mechanism (up/down arrows) to reorder items in the MFPanel list, empty/blank/optional dialog fields get overwritten by the item that is moved up or down. The values are no longer empty and persist if the dialog is saved.

To recreate:

  1. Create a component dialog using the MFP widget; for example create a basic definitions (two-textfield MFP) as described here:
    http://adobe-consulting-services.github.io/acs-aem-commons/features/widgets.html
  2. Add this component to the design of a page or create a test page that uses this component
  3. Open the dialog, and add four term/definitions to the dialog, but only fill out the 'term' field
  4. In the third MFP item/row, fill out the 'definition' field w/ a test value
  5. The 3rd item should be the only item w/ 'definition' included.
  6. use the dialog MFP reordering mechanism to move the 3rd row up or down
  7. the 3rd value will overwrite the empty values in the other rows, blowing away the empty values.

this makes reordering the items in a dialog w/ optional values difficult for authors.

you can also see this by filling out the bottom-most MFP row fully (term + definition), and adding a new, empty definition to the end of the list. Moving this item up to the middle of the list will cause the default empty fields to be overwritten by the data in other rows (starting with the bottom row).

This makes an otherwise awesome widget less usable for authors, especially around reordering.

@rajavdv
Copy link

rajavdv commented Apr 24, 2015

I am also facing exactly the same behaviour. Reordering causes the empty field is overwritten by the value of item moved.

@schoudry
Copy link
Contributor

working on it

@justinedelson justinedelson added this to the 1.10.0 milestone Apr 24, 2015
@radmike
Copy link
Author

radmike commented Apr 28, 2015

awesome looking forwards to checking the fix <3 this project

@nishantongithub
Copy link

nishantongithub commented Jun 12, 2017

https://github.com/justinedelson https://github.com/radmike Has the issue of empty dialog fields being overwritten been solved?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants