Browse Source

Fix dot-separated parentAssociationMapping

Emmanuel Vella 12 years ago
parent
commit
9d0d7573f5
1 changed files with 2 additions and 1 deletions
  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()));
             }
         }