Skip to content

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

@themokx1

Description

@themokx1

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions