Skip to content

Commit

Permalink
Fix dot-separated parentAssociationMapping
Browse files Browse the repository at this point in the history
  • Loading branch information
EmmanuelVella committed Apr 12, 2013
1 parent f6dfcf0 commit 9d0d757
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Admin/Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,8 @@ public function getFilterParameters()

// 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()));
}
}

Expand Down

0 comments on commit 9d0d757

Please sign in to comment.