Explorar el Código

Merge pull request #812 from TomAdam/pr-fix-resize-form-listener

Fix ResizeFormListener bug
Thomas hace 13 años
padre
commit
6490ac21a1
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      Form/EventListener/ResizeFormListener.php

+ 1 - 1
Form/EventListener/ResizeFormListener.php

@@ -99,7 +99,7 @@ class ResizeFormListener implements EventSubscriberInterface
                 'property_path' => '[' . $name . ']',
             ));
 
-            $form->add($this->factory->createNamed($this->type, $name, $value, $options));
+            $form->add($this->factory->createNamed($name, $this->type, $value, $options));
         }
     }