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

If you call setData and prepare more than once then collection element names wont get wrapped. #153

Open
themokx1 opened this issue Oct 26, 2021 · 3 comments
Labels
Bug Something isn't working

Comments

@themokx1
Copy link

Bug Report

Q A
Version(s) any

Summary

If you call setData and prepare more than once then collection element names wont get wrapped.
You want : ['collection'][0]['something']
You get: ['something']

Current behavior

prepare runs only once

How to reproduce

  • You fetch the data from the other source(eg post)
  • $form->setData($data);
  • $form->prepare();
  • $form->isValid()
  • $form->getData()
  • You need to call setData again
  • $form->setData($data)
  • $form->prepare();

Expected behavior

setData should set the isPrepared flag false.

@themokx1 themokx1 added the Bug Something isn't working label Oct 26, 2021
@akosphp
Copy link

akosphp commented Sep 26, 2023

Is there any progress on this? The same problem still exists in version 3.4.1.

@froschdesign
Copy link
Member

@akosphp

Is there any progress on this?

Can you provide an unit test via a pull request?
Any help is welcome! 👍🏻

@mimmi20
Copy link
Contributor

mimmi20 commented Jan 14, 2024

@akosphp @themokx1 Could you provide a sample configuration? I want to reproduce the issue.

@mimmi20 mimmi20 mentioned this issue Jan 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants