Explorar o código

Fix dot-separated parentAssociationMapping

Emmanuel Vella %!s(int64=12) %!d(string=hai) anos
pai
achega
9d0d7573f5
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      Admin/Admin.php

+ 2 - 1
Admin/Admin.php

@@ -724,7 +724,8 @@ abstract class Admin implements AdminInterface, DomainObjectInterface
 
             // always force the parent value
             if ($this->isChild() && $this->getParentAssociationMapping()) {
-                $parameters[$this->getParentAssociationMapping()] = array('value' => $this->request->get($this->getParent()->getIdParameter()));
+                $name = str_replace('.', '__', $this->getParentAssociationMapping());
+                $parameters[$name] = array('value' => $this->request->get($this->getParent()->getIdParameter()));
             }
         }