Jelajahi Sumber

Merge pull request #2781 from EmmanuelVella/child-filter

Hide automatic parent admin filter
Thomas 10 tahun lalu
induk
melakukan
f998bfdf01
1 mengubah file dengan 1 tambahan dan 0 penghapusan
  1. 1 0
      Admin/Admin.php

+ 1 - 0
Admin/Admin.php

@@ -885,6 +885,7 @@ abstract class Admin implements AdminInterface, DomainObjectInterface
         // ok, try to limit to add parent filter
         if ($this->isChild() && $this->getParentAssociationMapping() && !$mapper->has($this->getParentAssociationMapping())) {
             $mapper->add($this->getParentAssociationMapping(), null, array(
+                'show_filter' => false,
                 'label' => false,
                 'field_type' => 'sonata_type_model_hidden',
                 'field_options' => array(