8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
Errors are not associated with the field when the indices has a gap.
The errors are displayed for both fields.
<input type="text" id="post_photos_0_fileName" name="post[photos][0][fileName]" value="" /> <input type="text" id="post_photos_1_fileName" name="post[photos][1][fileName]" value="" />
Errors are only displayed for the first field.
<input type="text" id="post_photos_0_fileName" name="post[photos][0][fileName]" value="" /> <input type="text" id="post_photos_2_fileName" name="post[photos][2][fileName]" value="" />
public function buildForm(FormBuilderInterface $builder, array $options) { $builder->add( 'photos', 'collection', array( 'type' => new PhotoType(), 'allow_add' => true, 'allow_delete' => true, 'prototype' => true, 'by_reference' => false ) ); }
The text was updated successfully, but these errors were encountered:
That's because the "add" is called most likely. That means that the submitted data is re-indexed. We solved this by using javascript to fix the index.
Sorry, something went wrong.
Duplicate of #7468
No branches or pull requests
Errors are not associated with the field when the indices has a gap.
The errors are displayed for both fields.
Errors are only displayed for the first field.
The text was updated successfully, but these errors were encountered: