Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Fix / tests for #6363 #6400

Merged
merged 6 commits into from Aug 7, 2014
Merged

Fix / tests for #6363 #6400

merged 6 commits into from Aug 7, 2014

Conversation

ant7
Copy link
Contributor

@ant7 ant7 commented Jun 20, 2014

@@ -0,0 +1,78 @@
<?php
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

License header here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@samsonasik I've just updated the file. Thank you

@@ -638,6 +638,9 @@ protected function prepareValidationGroup(FieldsetInterface $formOrFieldset, arr
if (!isset($data[$key])) {
$data[$key] = array();
}
}

if(is_array($data[$key])) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I came across this issue myself today and just moving everything inside the else block to outside fixed the issue for me...if you do that the is_array check won't be necessary.

Small code change accoording to @adamlundrigan suggestion. It make the
code smaller and more logical, and the result is the same.
@ezimuel ezimuel added this to the 2.3.2 milestone Aug 6, 2014
@ezimuel ezimuel merged commit e4e6876 into zendframework:master Aug 7, 2014
Jhiino added a commit to Jhiino/zf2 that referenced this pull request Oct 8, 2014
CaporalDead added a commit to Astek-GO/zf2 that referenced this pull request Oct 8, 2014
CF zendframework#6363 zendframework#6400 - Problème d'hydratation des nested collection sur les form, import d'une correction de Zf 2.3
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants