Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Commit ad128e5

Browse files
committed
Fix PatchSubscriber for Symfony 2.3
Signed-off-by: Max Fierke <max@maxfierke.com>
1 parent 51d57c0 commit ad128e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/OpenSkedge/AppBundle/Form/EventSubscriber/PatchSubscriber.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ protected function unbind($form)
3838
{
3939
if ($form->count() > 0) {
4040
$ary = array();
41-
foreach ($form->getChildren() as $name => $child) {
41+
foreach ($form->all() as $name => $child) {
4242
$ary[$name] = $this->unbind($child);
4343
}
4444
return $ary;
4545
} else {
46-
return $form->getClientData();
46+
return $form->getViewData();
4747
}
4848
}
4949

0 commit comments

Comments
 (0)