Explorar o código

Admin::buildShow doesn't call configureShowFields in any attached AdminExtensions - AdminExtension contains this method though, so assume the intention was for it to call it.

Ben Lumley %!s(int64=13) %!d(string=hai) anos
pai
achega
17dacc3606
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      Admin/Admin.php

+ 4 - 0
Admin/Admin.php

@@ -616,6 +616,10 @@ abstract class Admin implements AdminInterface, DomainObjectInterface
         $this->configureShowField($mapper); // deprecated, use configureShowFields instead
         $this->configureShowFields($mapper);
 
+        foreach($this->getExtensions() as $extension) {
+            $extension->configureShowFields($mapper);
+        }
+
         $this->show = $collection;
     }