瀏覽代碼

Fix dot-separated parentAssociationMapping

Emmanuel Vella 12 年之前
父節點
當前提交
9d0d7573f5
共有 1 個文件被更改,包括 2 次插入1 次删除
  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()));
             }
         }