Ver Fonte

Fix widget being rendered in a select

Thomas Rabaix há 14 anos atrás
pai
commit
9868bd0d47
1 ficheiros alterados com 4 adições e 0 exclusões
  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 ...