Explorar o código

Fix widget being rendered in a select

Thomas Rabaix %!s(int64=14) %!d(string=hai) anos
pai
achega
9868bd0d47
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      Builder/ORM/FormContractor.php

+ 4 - 0
Builder/ORM/FormContractor.php

@@ -117,6 +117,10 @@ class FormContractor implements FormContractorInterface
                     break;
             }
 
+            if ($fieldDescription->getOption('edit') == 'list') {
+                $options['parent'] = 'hidden';
+            }
+
         } else if ($type == 'sonata_type_admin') {
 
             // nothing here ...